Skip to content

Commit

Permalink
Reduce some of the needless logging to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Jackson committed Oct 2, 2017
1 parent fb50dc0 commit 347a86c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/resque
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if($count > 1) {
}

if($killSignal) {
$logger->log(Psr\Log\LogLevel::NOTICE, 'Received signal {signal} for monitor {monitor}', array(
$logger->log(Psr\Log\LogLevel::DEBUG, 'Received signal {signal} for monitor {monitor}', array(
'signal' => $killSignal,
'monitor' => getmypid()
));
Expand All @@ -198,7 +198,7 @@ if($count > 1) {
pcntl_waitpid($k, $childStatus);
}

$logger->log(Psr\Log\LogLevel::NOTICE, 'Finished sending signal {signal} to all children', array('signal' => $killSignal));
$logger->log(Psr\Log\LogLevel::NOTICE, 'Finished shutting down all children', array('signal' => $killSignal));
exit;
}
$GLOBALS['send_signal'] = FALSE;
Expand Down
4 changes: 2 additions & 2 deletions lib/Resque/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ public function shutdownNow($signal = null)
}

if($this->shutdown) {
$this->logger->log(Psr\Log\LogLevel::NOTICE, 'Already shutdown for {worker}, ignoring {signal}', array(
$this->logger->log(Psr\Log\LogLevel::DEBUG, 'Already shutdown for {worker}, ignoring {signal}', array(
'signal' => $killSignal,
'worker' => $this
));
} else {
if($killSignal) {
$this->logger->log(Psr\Log\LogLevel::NOTICE, 'Received signal {signal} for {worker}', array(
$this->logger->log(Psr\Log\LogLevel::DEBUG, 'Received signal {signal} for {worker}', array(
'signal' => $killSignal,
'worker' => $this
));
Expand Down

0 comments on commit 347a86c

Please sign in to comment.