Repository navigation
fix(export): restore console log level after export completes - #7947
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no blocking issues remain. Summary
Reviews (7) · Last reviewed commit: "Fix the log level tests and reword the n..." · Reviewed by Greptile |
Merging this PR will degrade performance by 4.93%1 warning
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
0951824 to
fe2e381
Compare
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
fe2e381 to
e60e077
Compare
e60e077 to
709d7f4
Compare
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Re-trigger cubic
bb0ccaa to
b41e1fb
Compare
The export() function sets the console to the subprocess log level (WARNING by default) but never restores it, hiding all INFO messages from callers like `reflex deploy` after the export step. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b41e1fb to
9797836
Compare
The failure test passed frontend=False, so the patched get_compiled_app never ran and the test could not pass. The tests also left the process log level and REFLEX_LOGLEVEL changed for every later test. Replace the three tests with one parametrized test that checks the level during and after a successful and a failed export. A fixture starts it at a known level and undoes both the level and the variable. The fragment now describes what a deploy user sees.
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Re-trigger cubic
Closes #7850
Summary
export()sets the console to the subprocess log level (WARNING by default) but never restores itreflex deployafter the export step — deployment progress, scaling-conflict retries, and the success line are all silencedexport()changes it and restore it in the existingfinallyblockChanges
reflex/utils/export.py: saveprev_log_levelvia_log.get_log_level()beforeset_log_level(loglevel), restore it in thefinallyblockTest plan
reflex deployin a non-TTY shell should now show progress and success messages after the export stepfinallyblock, so the level is restored even if export fails🤖 Generated with Claude Code