fix(export): restore console log level after export completes

DE
8h ago
+49-1

Closes #7850

Summary

  • export() sets the console to the subprocess log level (WARNING by default) but never restores it
  • This hides all INFO messages from callers like reflex deploy after the export step — deployment progress, scaling-conflict retries, and the success line are all silenced
  • Fix: save the current log level before export() changes it and restore it in the existing finally block

Changes

  • reflex/utils/export.py: save prev_log_level via _log.get_log_level() before set_log_level(loglevel), restore it in the finally block

Test plan

  • reflex deploy in a non-TTY shell should now show progress and success messages after the export step
  • The fix is in the existing finally block, so the level is restored even if export fails

🤖 Generated with Claude Code