Default quiet=false when background with logfile#568
Default quiet=false when background with logfile#568meatballhat wants to merge 2 commits intomasterfrom
Conversation
|
@xeron How's this? 😸 |
|
Well, it may help, but the whole situation raises some questions.
I see this code in logger builder: def level
if @verbose && !@quiet
MonoLogger::DEBUG
elsif !@quiet
MonoLogger::INFO
else
MonoLogger::FATAL
end
endbut looks like in background mode you're using some different logic? |
|
@xeron I agree that the current situation with My understanding of the current intent, is: default_quiet = false
if options[:background]
default_quiet = true
end
if options[:logfile]
default_quiet = false
end
log_level = if options.fetch(:quiet, default_quiet)
FATAL
elsif options.fetch(:verbose, false)
DEBUG
else
INFO
endI'm very much ready to believe that the current implementation does not match this intent. Supporting explicit log levels instead of the |
|
Yeah, I think keeping only |
|
Soo, what happened to this PR and issue I reported? This bug still affects me :( |
|
I started using resque-scheduler and am noticing the same issue that @xeron is reporting here. Is there a workaround at least so we can get logs? |
Closes #565