resque / php-resque

An implementation of Resque in PHP.
MIT License
216 stars 77 forks source link

Replace with $worker->setLogger($logger); #57

Closed dabreu2 closed 2 years ago

dabreu2 commented 2 years ago

https://github.com/resque/php-resque/blob/daa339905288e6c9f5244e12dd853a9c53cf2299/bin/resque#L116 https://github.com/resque/php-resque/blob/daa339905288e6c9f5244e12dd853a9c53cf2299/bin/resque#L173

BenoitDD-URIOS commented 2 years ago

👍🏼

danhunsaker commented 2 years ago

Duplicate of #39

This was a case of a change in the way Resque works not being propagated to the bin. Instead of configuring the logger level on the worker, we now directly set the logger instance, which lets Resque support any PSR-compliant logger, such as the one used by $framework.

This has been fixed, now, so I'm closing the issue. Sorry for the long delay on getting to it, and thanks to @dabreu2 for the PR.