diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index 4b180b0d9ed..6f2d8f531b5 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -2917,10 +2917,13 @@ 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,