summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-02 22:36:44 +0200
committerGitHub <noreply@github.com>2018-04-02 22:36:44 +0200
commitd6649d2aa6be0328d7a605a76655923781d147da (patch)
tree2fe39a4d1ac40a4f919324f7814a1406da67704a /Bugzilla
parent45485679f2e173170ed9c0e8a0eae979fe9de067 (diff)
downloadbugzilla-d6649d2aa6be0328d7a605a76655923781d147da.tar.gz
bugzilla-d6649d2aa6be0328d7a605a76655923781d147da.tar.xz
Bug 1450283 - JobQueue should treat "no jobs" as a trace-level message, and all other logs as info
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/JobQueue.pm7
1 files changed, 6 insertions, 1 deletions
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 {