BryanDavis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/297935

Change subject: redisJobChronService: make log less spammy
......................................................................

redisJobChronService: make log less spammy

Do not log when no jobs have been updated in a cycle.

Change-Id: I605fde9bea690679fe32168333f8ef407015587f
---
M redisJobChronService
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/jobrunner 
refs/changes/35/297935/1

diff --git a/redisJobChronService b/redisJobChronService
index 3836f5a..e62d1ad 100755
--- a/redisJobChronService
+++ b/redisJobChronService
@@ -41,7 +41,9 @@
                        pcntl_signal_dispatch();
 
                        $count = $this->executePeriodicTasks();
-                       $this->notice( "Updated the state of $count job(s) 
(recycle/undelay/abandon)." );
+                       if ( $count ) {
+                               $this->notice( "Updated the state of $count 
job(s) (recycle/undelay/abandon)." );
+                       }
 
                        usleep( self::PERIOD_WAIT_US );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/297935
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I605fde9bea690679fe32168333f8ef407015587f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/jobrunner
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <bda...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to