X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FLogImporter.pm;h=a17aa35791f2f4932a241f07c553d8c3042d8e54;hp=a4c0b466d7117497a443c3bff7f33602a96aa754;hb=374a05c8dd5c974fe841569aa34eeabd7b072dd6;hpb=823a39c30ce9192a438dfba68b5ef78265869ca9 diff --git a/lib/DBIx/Class/DeploymentHandler/LogImporter.pm b/lib/DBIx/Class/DeploymentHandler/LogImporter.pm index a4c0b46..a17aa35 100644 --- a/lib/DBIx/Class/DeploymentHandler/LogImporter.pm +++ b/lib/DBIx/Class/DeploymentHandler/LogImporter.pm @@ -5,12 +5,11 @@ use strict; use parent 'Log::Contextual'; -use DBIx::Class::DeploymentHandler::Logger; +use DBIx::Class::DeploymentHandler::LogRouter; -my $logger = DBIx::Class::DeploymentHandler::Logger->new({ - env_prefix => 'DBICDH' -}); - -sub arg_package_logger { $_[1] || $logger } +{ + my $router; + sub router { $router ||= DBIx::Class::DeploymentHandler::LogRouter->new } +} 1;