From c8f1e8afdbe8adfc468ad618a4ec0229ad5be5ee Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 12 Jan 2013 14:37:45 -0800 Subject: [PATCH] Add debugging lines --- miniserv.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index b872cf99c..58efc6399 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -5661,13 +5661,15 @@ foreach my $cron (@webmincrons) { if ($run) { print DEBUG "Running cron id=$cron->{'id'} ". - "module=$cron->{'module'} func=$cron->{'func'}\n"; + "module=$cron->{'module'} func=$cron->{'func'} ". + "arg0=$cron->{'arg0'}\n"; $webmincron_last{$cron->{'id'}} = $now; $changed = 1; my $pid = fork(); if (!$pid) { # Run via a wrapper command, which we run like a CGI dbmclose(%sessiondb); + open(STDOUT, ">&STDERR"); # Setup CGI-like environment $envtz = $ENV{"TZ"}; @@ -5837,7 +5839,7 @@ foreach my $f (readdir(CRONS)) { delete($cron{'special'}); } if (!$broken) { - print DEBUG "adding cron id=$cron{'id'} module=$cron{'module'} func=$cron{'func'}\n"; + print DEBUG "Adding cron id=$cron{'id'} module=$cron{'module'} func=$cron{'func'} arg0=$cron{'arg0'}\n"; push(@webmincrons, \%cron); } }