From 78a8b4a17482c3aa9581be35f42c58a690d24c62 Mon Sep 17 00:00:00 2001 From: dabreu2 Date: Thu, 27 Jan 2022 13:49:05 -0300 Subject: [PATCH] Fix wrong Logger setting (#58) Passing the log level is no longer the correct initialization process for the logger. Instead, we need to set a fully configured logger instance. --- bin/resque | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/resque b/bin/resque index d6ac0d6..fbd66af 100755 --- a/bin/resque +++ b/bin/resque @@ -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); @@ -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');