From: Tyler Riddle Date: Fri, 21 Dec 2012 20:21:14 +0000 (-0800) Subject: disable log forwarding by default - has issues at scale X-Git-Tag: v0.003001_01~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=commitdiff_plain;h=f21d2f9042fbad3e958979f4db37f051b3c50998 disable log forwarding by default - has issues at scale --- diff --git a/lib/Object/Remote/Logging.pm b/lib/Object/Remote/Logging.pm index 7eee65f..4571c0a 100644 --- a/lib/Object/Remote/Logging.pm +++ b/lib/Object/Remote/Logging.pm @@ -74,7 +74,7 @@ sub init_logging { my %controller_should_log; unless (defined $ENV{OBJECT_REMOTE_LOG_FORWARDING} && $ENV{OBJECT_REMOTE_LOG_FORWARDING} ne '') { - $ENV{OBJECT_REMOTE_LOG_FORWARDING} = 1; + $ENV{OBJECT_REMOTE_LOG_FORWARDING} = 0; } if ($test_logging) { @@ -206,8 +206,8 @@ remote interpreter and the logger for the message is invoked in the local interp Sub-classes of Object::Remote::Logging will have log messages forwarded automatically. Loggers receive forwarded log messages exactly the same way as non-forwarded messages except a forwarded message includes extra metadata about the remote interpreter. Log -forwarding is enabled by default but comes with a performance hit; to disable it set the -OBJECT_REMOTE_LOG_FORWARDING environment variable to 0. See L. +forwarding is disabled by default because it comes with a performance hit; to enable +it set the OBJECT_REMOTE_LOG_FORWARDING environment variable to 1. =head1 EXPORTABLE SUBROUTINES