Repository navigation
Honor an explicit --loglevel info when INFO is already the level - #7960
Conversation
set_log_level() only writes REFLEX_LOGLEVEL when the level changes, so --loglevel info never reached the config. Both --loglevel callbacks now write an explicit level to REFLEX_LOGLEVEL.
[Medium impact] The PR appears safe to merge. SummaryBoth CLI callbacks now write an explicit
Reviews (1) · Last reviewed commit: "Honor an explicit --loglevel info when I..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Part of #7850 (the
--loglevelhalf; #7947 handlesexport()).set_log_level()only writesREFLEX_LOGLEVELwhen the level changes, and it starts atINFO, so an explicit--loglevel infonever reached the config and could be overridden byrxconfig.pyorexport_for_deploy().This updates both
--loglevelcallbacks to write an explicit level toREFLEX_LOGLEVELand adds unit tests.set_log_level()is left unchanged since hosting commands call it with a default"info"even without a flag, which would otherwise overriderxconfig.py.All Submissions:
Type of change