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=1075016900a4b562cd719b31eaee916d8744c551;hp=4571c0a2e058f0d4a55f2563b78307294f80e77b;hb=572a9a00cec239943f92157ec39c44398aad137f;hpb=f21d2f9042fbad3e958979f4db37f051b3c50998 diff --git a/lib/Object/Remote/Logging.pm b/lib/Object/Remote/Logging.pm index 4571c0a..1075016 100644 --- a/lib/Object/Remote/Logging.pm +++ b/lib/Object/Remote/Logging.pm @@ -108,14 +108,15 @@ sub init_logging { router()->connect(sub { my $controller = $_[1]->{controller}; my $will_log = $controller_should_log{$controller}; + my $remote_info = $_[1]->{object_remote}; $will_log = $controller_should_log{'*'} unless defined $will_log; return unless $will_log; #skip things from remote hosts because they log to STDERR #when OBJECT_REMOTE_LOG_LEVEL is in effect - return if $_[1]->{remote}->{object_remote}; - $logger + return if $remote_info->{forwarded}; + return $logger; }); }