fix(proxy): set verbose_logger level when LITELLM_LOG=INFO#26401
Conversation
[Infra] Promote internal staging to main
Fixes BerriAI#26396. The `LITELLM_LOG=INFO` branch in proxy_server only set `verbose_router_logger` and `verbose_proxy_logger`. The third logger `verbose_logger` (used by e.g. `token_based_routing.py`) inherited the Python root default (WARNING) and its INFO-level messages were silently filtered — inconsistent with the neighbouring DEBUG branch which configures all three and with the `debug=True` / `detailed_debug` paths above. Include `verbose_logger` in the INFO branch as well so all three loggers behave the same.
Low: Logging level fix onlyThis PR adds Status: 0 open Posted by Veria AI · 2026-04-24T08:50:23.266Z |
Greptile SummaryThis PR fixes a missing Confidence Score: 5/5This PR is safe to merge — it's a one-line additive fix with no risk of regression. The change adds a single setLevel call that was clearly missing compared to every other sibling branch. No logic is altered, no interfaces change, and the fix is strictly additive. No files require special attention.
|
| Filename | Overview |
|---|---|
| litellm/proxy/proxy_server.py | Adds verbose_logger.setLevel(logging.INFO) and the corresponding import to the LITELLM_LOG=INFO branch, matching every other log-level branch in the same function. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[initialize called] --> B{debug is True?}
B -- Yes --> C[Set all 3 loggers to INFO]
B -- No --> D{detailed_debug is True?}
D -- Yes --> E[Set all 3 loggers to DEBUG]
D -- No --> F{LITELLM_LOG env var set?}
F -- INFO --> G["Set verbose_logger ✅ NEW\nSet verbose_router_logger\nSet verbose_proxy_logger\n→ all INFO"]
F -- DEBUG --> H["Set verbose_logger\nSet verbose_router_logger\nSet verbose_proxy_logger\n→ all DEBUG"]
F -- other/unset --> I[No logger change]
Reviews (1): Last reviewed commit: "fix(proxy): set verbose_logger level whe..." | Re-trigger Greptile
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
f63a6f1
into
BerriAI:litellm-oss-staging-04-25-2026
…6401) Fixes BerriAI#26396. The `LITELLM_LOG=INFO` branch in proxy_server only set `verbose_router_logger` and `verbose_proxy_logger`. The third logger `verbose_logger` (used by e.g. `token_based_routing.py`) inherited the Python root default (WARNING) and its INFO-level messages were silently filtered — inconsistent with the neighbouring DEBUG branch which configures all three and with the `debug=True` / `detailed_debug` paths above. Include `verbose_logger` in the INFO branch as well so all three loggers behave the same. Co-authored-by: yuneng-jiang <yuneng@berri.ai> Co-authored-by: Yufeng He <40085740+universeplayer@users.noreply.github.com>
Fixes #26396.
The `LITELLM_LOG=INFO` branch in `litellm/proxy/proxy_server.py` only set `verbose_router_logger` and `verbose_proxy_logger`. The third logger `verbose_logger` (used by e.g. `token_based_routing.py` via `litellm._logging.verbose_logger.info(...)`) inherited the Python root default (WARNING), so its INFO-level messages were silently filtered.
That's inconsistent with:
Include `verbose_logger` in the INFO branch so all three loggers behave the same.
Test plan