Skip to content

Honor an explicit --loglevel info when INFO is already the level - #7960

Merged
FarhanAliRaza merged 1 commit into
reflex-dev:mainfrom
zeyadrabie:honour-explicit-loglevel
Nov 24, 2026
Merged

FarhanAliRaza merged 1 commit into
reflex-dev:mainfrom
zeyadrabie:honour-explicit-loglevel

Conversation

@zeyadrabie

@zeyadrabie zeyadrabie commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Part of #7850 (the --loglevel half; #7947 handles export()).

set_log_level() only writes REFLEX_LOGLEVEL when the level changes, and it starts at INFO, so an explicit --loglevel info never reached the config and could be overridden by rxconfig.py or export_for_deploy().

This updates both --loglevel callbacks to write an explicit level to REFLEX_LOGLEVEL and 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 override rxconfig.py.

All Submissions:

  • Have you followed the guidelines stated in CONTRIBUTING.md file?
  • Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change

  • Bug fix (non-breaking change which fixes an issue)

View guided diff

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.
@zeyadrabie
zeyadrabie requested a review from a team as a code owner November 21, 2026 23:34
@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Both CLI callbacks now write an explicit --loglevel value to REFLEX_LOGLEVEL, even when the current level already matches.

  • Explicit log levels reach app config even when they match the current level.

Reviews (1) · Last reviewed commit: "Honor an explicit --loglevel info when I..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread news/+explicit-loglevel-info.bugfix.md Resolved
@codspeed

codspeed Bot commented Nov 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 22 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 146 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing zeyadrabie:honour-explicit-loglevel (028ce99) with main (df7f157)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@FarhanAliRaza FarhanAliRaza added the bug Something isn't working label Nov 23, 2026 — with ChatGPT Codex Connector
@FarhanAliRaza
FarhanAliRaza merged commit a0689d6 into reflex-dev:main Nov 24, 2026
174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants