mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 01:05:19 +00:00
2c60c316ec
When JSON_LOGS=True is set, error logs were not being formatted as JSON despite the configuration. This was because the logging initialization code configured individual loggers but failed to properly initialize all loggers with the JSON formatter. This fix ensures that when json_logs is enabled, the _initialize_loggers_with_handler() function is called to: - Configure all loggers (root, LiteLLM, Router, Proxy) with JSON formatter - Disable logger propagation to prevent duplicate entries - Set up exception handlers for JSON formatting Fixes LIT-267