update Object::Remote::connect() to pass arguments to the connection
[scpubgit/Object-Remote.git] / lib / Object / Remote.pm
index 03095a5..f937fb3 100644 (file)
@@ -5,11 +5,7 @@ use Object::Remote::Handle;
 use Object::Remote::Logging qw( :log );
 use Module::Runtime qw(use_module);
 
-our $VERSION = '0.002003'; # 0.2.3
-
-BEGIN { 
-  Object::Remote::Logging->init_logging; 
-}
+our $VERSION = '0.003001'; # 0.3.1
 
 sub new::on {
   my ($class, $on, @args) = @_;
@@ -31,8 +27,8 @@ sub new {
 }
 
 sub connect {
-  my ($class, $to) = @_;
-  use_module('Object::Remote::Connection')->maybe::start::new_from_spec($to);
+  my ($class, $to, @args) = @_;
+  use_module('Object::Remote::Connection')->maybe::start::new_from_spec($to, @args);
 }
 
 sub current_loop {
@@ -154,8 +150,8 @@ L<Object::Remote::Logging::Logger>.
 
 =item OBJECT_REMOTE_LOG_FORWARDING
 
-Forward log events from remote connections to the local Perl interpreter. Set to 1 to enable
-this feature which is disabled by default. See L<Object::Remote::Logging>.
+Forward log events from remote connections to the local Perl interpreter. Set to 0 to disable
+this feature which is enabled by default. See L<Object::Remote::Logging>.
 
 =item OBJECT_REMOTE_LOG_SELECTIONS