parent = 0.225
autodie = 0
namespace::autoclean = 0
-Log::Contextual = 0.00300
+Log::Contextual = 0.004200
File::Path = 2.08
DBIx::Class = 0.08121
Moose = 1.0
use Moose;
require DBIx::Class::Schema; # loaded for type constraint
use Carp::Clan '^DBIx::Class::DeploymentHandler';
-use DBIx::Class::DeploymentHandler::Logger;
+use DBIx::Class::DeploymentHandler::LogImporter ':log';
use DBIx::Class::DeploymentHandler::Types;
-use Log::Contextual ':log', -package_logger =>
- DBIx::Class::DeploymentHandler::Logger->new({
- env_prefix => 'DBICDH'
- });
has schema => (
is => 'ro',
use autodie;
use Carp qw( carp croak );
-use DBIx::Class::DeploymentHandler::Logger;
-use Log::Contextual qw(:log :dlog), -package_logger =>
- DBIx::Class::DeploymentHandler::Logger->new({
- env_prefix => 'DBICDH'
- });
+use DBIx::Class::DeploymentHandler::LogImporter qw(:log :dlog);
use Context::Preserve;
use Try::Tiny;
--- /dev/null
+package DBIx::Class::DeploymentHandler::LogImporter;
+
+use warnings;
+use strict;
+
+use parent 'Log::Contextual';
+
+use DBIx::Class::DeploymentHandler::Logger;
+
+my $logger = DBIx::Class::DeploymentHandler::Logger->new({
+ env_prefix => 'DBICDH'
+});
+
+sub arg_package_logger { $_[1] || $logger }
+
+1;
package DBIx::Class::DeploymentHandler::VersionStorage::Deprecated;
use Moose;
-use DBIx::Class::DeploymentHandler::Logger;
-use Log::Contextual ':log', -package_logger =>
- DBIx::Class::DeploymentHandler::Logger->new({
- env_prefix => 'DBICDH'
- });
+use DBIx::Class::DeploymentHandler::LogImporter ':log';
# ABSTRACT: (DEPRECATED) Use this if you are stuck in the past
package DBIx::Class::DeploymentHandler::VersionStorage::Standard;
use Moose;
-use DBIx::Class::DeploymentHandler::Logger;
-use Log::Contextual ':log', -package_logger =>
- DBIx::Class::DeploymentHandler::Logger->new({
- env_prefix => 'DBICDH'
- });
+use DBIx::Class::DeploymentHandler::LogImporter ':log';
# ABSTRACT: Version storage that does the normal stuff