Skip to content

Commit

Permalink
Fix wrong Logger setting (#58)
Browse files Browse the repository at this point in the history
Passing the log level is no longer the correct initialization process for the logger. Instead, we need to set a fully configured logger instance.
  • Loading branch information
dabreu2 authored Jan 27, 2022
1 parent 7b5c928 commit 78a8b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/resque
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if($count > 1) {
elseif(!$pid) {
$queues = explode(',', $QUEUE);
$worker = new Resque_Worker($queues);
$worker->logLevel = $logLevel;
$worker->setLogger($logger);
$worker->hasParent = TRUE;
fwrite(STDOUT, '*** Starting worker '.$worker."\n");
$worker->work($interval);
Expand Down Expand Up @@ -170,7 +170,7 @@ if($count > 1) {
else {
$queues = explode(',', $QUEUE);
$worker = new Resque_Worker($queues);
$worker->logLevel = $logLevel;
$worker->setLogger($logger);
$worker->hasParent = FALSE;

$PIDFILE = getenv('PIDFILE');
Expand Down

0 comments on commit 78a8b4a

Please sign in to comment.