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=9dbb70e2d9c809a72a0ecde1e6e1874819eac9a7;hp=a20ef974f1fbb6ac9486ddfa05895e25b02fed81;hb=5d59cb9859e004df5cde5d83aa7230e621a28b95;hpb=ffc818dd92a3e0434bbee8d7843fcabb9e0bbb44 diff --git a/lib/Object/Remote.pm b/lib/Object/Remote.pm index a20ef97..9dbb70e 100644 --- a/lib/Object/Remote.pm +++ b/lib/Object/Remote.pm @@ -2,19 +2,26 @@ 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.002002'; # 0.2.2 +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_trace { sprintf("constructing instance of $class on connection for child pid of %i", $conn->child_pid) }; return $conn->remote_object(class => $class, args => \@args); } sub can::on { my ($class, $on, $name) = @_; my $conn = __PACKAGE__->connect($on); + log_trace { "Invoking remote \$class->can('$name')" }; return $conn->remote_sub(join('::', $class, $name)); }