From: Dylan William Hardison Date: Mon, 2 Apr 2018 20:36:44 +0000 (-0400) Subject: Bug 1450283 - JobQueue should treat "no jobs" as a trace-level message, and all other... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6649d2aa6be0328d7a605a76655923781d147da;p=thirdparty%2Fbugzilla.git Bug 1450283 - JobQueue should treat "no jobs" as a trace-level message, and all other logs as info --- diff --git a/Bugzilla/JobQueue.pm b/Bugzilla/JobQueue.pm index 53b088c6e..afb36673f 100644 --- a/Bugzilla/JobQueue.pm +++ b/Bugzilla/JobQueue.pm @@ -101,7 +101,12 @@ sub debug { my $caller_pkg = caller; local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1; my $logger = Log::Log4perl->get_logger($caller_pkg); - $logger->info(@args); + if ($args[0] && $args[0] eq "TheSchwartz::work_once found no jobs") { + $logger->trace(@args); + } + else { + $logger->info(@args); + } } sub work {