-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default quiet=false when background with logfile #568
base: master
Are you sure you want to change the base?
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
end but 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
end I'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