mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-14 08:26:09 +00:00
perf: guard debug f-string in update_environment_variables to avoid evaluation when disabled (#20360)
This commit is contained in:
@@ -526,7 +526,8 @@ class Logging(LiteLLMLoggingBaseClass):
|
||||
}
|
||||
self.litellm_request_debug = litellm_params.get("litellm_request_debug", False)
|
||||
self.logger_fn = litellm_params.get("logger_fn", None)
|
||||
verbose_logger.debug(f"self.optional_params: {self.optional_params}")
|
||||
if _is_debugging_on() or self.litellm_request_debug:
|
||||
verbose_logger.debug(f"self.optional_params: {self.optional_params}")
|
||||
|
||||
self.model_call_details.update(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user