X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote.pm;h=675b2fb368ff69d041285725af22e6dc0247b255;hp=25a2ff9531e12b0e7182140dd05de96d6ea96952;hb=4a9fa1a5a329754549f998536e0e68f19d42d7ab;hpb=b9a9982d7fe12d481b82a939630275ec78b0bc0e diff --git a/lib/Object/Remote.pm b/lib/Object/Remote.pm index 25a2ff9..675b2fb 100644 --- a/lib/Object/Remote.pm +++ b/lib/Object/Remote.pm @@ -2,11 +2,19 @@ package Object::Remote; use Object::Remote::MiniLoop; 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; +} + sub new::on { my ($class, $on, @args) = @_; my $conn = __PACKAGE__->connect($on); + log_debug { sprintf("constructing instance of $class on connection for child pid of %i", $conn->child_pid) }; return $conn->remote_object(class => $class, args => \@args); } @@ -23,7 +31,7 @@ sub new { sub connect { my ($class, $to) = @_; - use_module('Object::Remote::Connection')->new_from_spec($to); + use_module('Object::Remote::Connection')->maybe::start::new_from_spec($to); } sub current_loop {