add cmd line to forkcall stats
[spider.git] / cmd / show / log.pl
index 5a83d4435ac723808880d118d1fe9faef72b6bb2..29d2b51232aca51f3bae521e98ce2ac42b18d1e5 100644 (file)
@@ -41,16 +41,7 @@ sub handle
                $who = $self->call;
        }
 
-       @out = $self->spawn_cmd(\&DXLog::print, args => [$from, $to, $main::systime, undef, $who]);
+       @out = $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who]);
        
-#      my $fc = Mojo::IOLoop::ForkCall->new;
-#      $fc->run(
-#                       sub {my @args = @_; my @res = DXLog::print(@args); return @res}, 
-#                       [$from, $to, $main::systime, undef, $who],
-#                       sub {my ($fc, $err, @out) = @_; delete $self->{stash}; $self->send(@out);}
-#                      );
-#      #$self->{stash} = $fc;
-       
-#      @out = DXLog::print($from, $to, $main::systime, undef, $who);
        return (1, @out);
 }