mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
perf: guard debug f-string in update_environment_variables to avoid evaluation when disabled (#20360)
This commit is contained in:
parent
14c2b5da91
commit
862f0de839
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue