add pid and hostname to logging metadata; setting OBJECT_REMOTE_LOG_FORWARDING env...
[scpubgit/Object-Remote.git] / lib / Object / Remote / Proxy.pm
index a3e2a80..3c46eeb 100644 (file)
@@ -5,7 +5,11 @@ use strictures 1;
 sub AUTOLOAD {
   my $self = shift;
   (my $method) = (our $AUTOLOAD =~ /([^:]+)$/);
-  $self->{remote}->call($method => @_);
+  my $to_fire = $self->{method};
+  if ((caller(0)||'') eq 'start') {
+    $to_fire = "start::${to_fire}";
+  }
+  $self->{remote}->$to_fire($method => @_);
 }
 
 sub DESTROY { }