]> dxcluster.org Git - spider.git/commitdiff
add dbg line to dxcron::spawn_cmd
authorDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 01:13:58 +0000 (02:13 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 17 Apr 2020 01:13:58 +0000 (02:13 +0100)
perl/DXCron.pm

index 0cc6ce88d85ec36e7fa8617627fb724f41d9bb68..ae9feb32000c1e09c84d8403ce4a651432ddaca6 100644 (file)
@@ -246,6 +246,7 @@ sub spawn
 {
        my $line = shift;
 
+       dbg("DXCron::spawn: $line") if isdbg("cron");
        my $fc = Mojo::IOLoop::Subprocess->new();
        $fc->run(
                         sub {my @res = `$line`; return @res},