-
Notifications
You must be signed in to change notification settings - Fork 154
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
is "active" observer turned off for non-debug? #178
Comments
Going to be honest. I don't know much about observers. Is there something you would like to update or change via a PR? Either documenting the current state or changing it? Is this related to #146 ? |
I would not expect state changes to I suspect the problem may be in the way the OP is setting the logging level, i.e. maybe the logging level is getting changed, reset, or lost after initialization. The docs suggest you create a new logger first, which should assure your logging level does not get inherited/reset by the default logger (i.e. Rails). However the docs do imply that This can be a bit tricky to follow but I believe it does what is says. So, I can't find the bug, but that doesn't mean one doesn't exist. |
#104 seems possibly related. |
To get on the same page it would help if we had an example app to reproduce
the problem https://www.codetriage.com/example_app
…On Thursday, June 9, 2022, Jonathan Dance (JD) ***@***.***> wrote:
#104 <#104> seems possibly
related.
—
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOSYD66FNR7PQX7CYMR6LVOJWM3ANCNFSM5IWF6MBQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Richard Schneeman
https://www.schneems.com
he/him
|
closing as stale |
thanks for this project!
my tests locally show that "active" event fires even when log level is set to info
i have this in an initializer
Rack::Timeout::Logger.level=Logger::INFO
and am logging env['rack-timeout.info']['state'] for each request, and i see active being logged
i don't see anything in the code which would disable it in non-debug mode
i addition to fixing this, would be cool if this were also configurable so it could be turned off in debug mode
The text was updated successfully, but these errors were encountered: