X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FLogging.pm;h=6446ebc25371d56c683c52846b458a09de5115fb;hp=840458b620bd849a05041639d75d6c6dc649e06d;hb=c2a695379d7eb1d6907feb002e3de0ea37c9536b;hpb=ecbca5dea77bef08e032b491bbf184f2ad2f3284 diff --git a/lib/Object/Remote/Logging.pm b/lib/Object/Remote/Logging.pm index 840458b..6446ebc 100644 --- a/lib/Object/Remote/Logging.pm +++ b/lib/Object/Remote/Logging.pm @@ -39,7 +39,13 @@ sub arg_levels { sub before_import { my ($class, $importer, $spec) = @_; my $router = $class->router; + our $DID_INIT; + unless($DID_INIT) { + $DID_INIT = 1; + init_logging(); + } + $class->SUPER::before_import($importer, $spec); my @levels = @{$class->arg_levels($spec->config->{levels})};