Update litellm/litellm_core_utils/litellm_logging.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Harshit Jain 2026-03-07 03:42:29 +05:30 committed by GitHub
parent a915d896e7
commit c46371c8cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2917,12 +2917,10 @@ class Logging(LiteLLMLoggingBaseClass):
start_time=start_time,
end_time=end_time,
print_verbose=print_verbose,
callback_func=callback,
)
if (
isinstance(callback, CustomLogger)
and is_sync_request
and (self.call_type != CallTypes.pass_through.value) # pass-through endpoints call async_log_failure_event
and self.call_type != CallTypes.pass_through.value # pass-through endpoints call async_log_failure_event
): # custom logger class
callback.log_failure_event(
start_time=start_time,