Skip to content
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

redirector.silence_sql_logs = true change log level to 3 in production #19

Open
ivan-mr opened this issue Apr 20, 2018 · 0 comments
Open

Comments

@ivan-mr
Copy link

ivan-mr commented Apr 20, 2018

Configuring the app like it sais in README.md, in production environment initialized with log level to 1 (:info), sometimes the app changes the log level to 3 (:error).

I detect that making some simultaneous in ajax petitions on the app generates this error. To return the log level to :info I have to restart the app to get the setting initialization.
The error is produced inside class Responder from Middleware, in with_optional_silencing method

To get by with the error, I configured de redirector.silence_sql_logs to true only in development environment. I don't know why still works in development, but in this environment doesn't change.
In production if silence_sql_logs is set to false and logger level is initialized to 3 (:info) the redirector sql logs aren't showed (that is what I want).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant