wa0x6e/php-resque-ex

Using logHandler does not respect the logging level

Closed this issue · 1 comments

I'm using fresque to start up the resque workers, with Monolog/RotatingFile for logging. I've turned off any verbosity in the startup command and yet the following entries are being logged to my files every second. (My worker is running at interval 1.)

[2013-04-04 15:52:46] main.DEBUG: Checking default {"type":"check","queue":"default","worker":"ck:28714"} []
[2013-04-04 15:52:46] main.DEBUG: Sleeping for 1 {"type":"sleep","second":"1","worker":"ck:28714"} []
[2013-04-04 15:52:46] main.DEBUG: Checking default {"type":"check","queue":"default","worker":"ck:28715"} []
[2013-04-04 15:52:46] main.DEBUG: Sleeping for 1 {"type":"sleep","second":"1","worker":"ck:28715"} []

Any chance to wrap debug logging around a logLevel check? Thanks.

Fixed in 1.2.4.

run composer update to update php-resque-ex and fresque.

Default mode was downgraded from verbose to normal
To enable verbose mode, use the new --verbose option when starting a worker.

You can also set the default logging mode in the fresque.ini: there's a new verbose option, default to 0.
Set it to 1 to always use verbose, regardless of --verbose.