replaced entire logging subsystem with one that is fully operational with the followi...
[scpubgit/Object-Remote.git] / lib / Object / Remote / Handle.pm
index 1a20eba..8e0a84f 100644 (file)
@@ -2,7 +2,7 @@ package Object::Remote::Handle;
 
 use Object::Remote::Proxy;
 use Scalar::Util qw(weaken blessed);
-use Object::Remote::Logging qw ( :log );
+use Object::Remote::Logging qw ( :log get_router );
 use Object::Remote::Future;
 #must find way to exclude certain log events
 #from being forwarded - log events generated in
@@ -11,6 +11,8 @@ use Object::Remote::Future;
 use Module::Runtime qw(use_module);
 use Moo;
 
+BEGIN { get_router()->exclude_forwarding }
+
 has connection => (
   is => 'ro', required => 1,
   coerce => sub {