-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Resolve "level" env var at runtime #446
Conversation
Did you check if this is even needed? Last time I checked, every monolog handler already casts the log level. I see no reason for this bundle to cast the level at all. |
Why didn't I think of that! You are absolutely right. By default the I'll check for older versions and update the PR. |
|
b6e7432
to
6204234
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test the code locally, but this seems super cool 👍🏼
Less code => more feature 🎖️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also seems good to me just having a look at the code 👍🏻
6204234
to
db45663
Compare
@GromNaN do you have an idea on when this will be released? |
Resolves #413, #444
Currently, the log level is read when the container built. This means we cannot change a log level at runtime using env vars.
With this change, log level can be modified for a specific command run:
LOG_LEVEL=debug bin/console ...
I would like to get some feedbacks before updating tests. I don't know yet what is the best strategy to check the resolution of the values.