From 5d69c66813c62e92e4c5f3d06ab10e53dae759d8 Mon Sep 17 00:00:00 2001 From: Ryan Crabbe Date: Tue, 27 Jan 2026 13:04:54 -0800 Subject: [PATCH] fix: Check full MRO for method override detection --- litellm/integrations/custom_logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.py index e9e200ff803..83f55bed24f 100644 --- a/litellm/integrations/custom_logger.py +++ b/litellm/integrations/custom_logger.py @@ -788,9 +788,9 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac """ # Only skip if global redaction applied AND method is not overridden if global_redaction_applied: - # Check if this method was overridden in a subclass + # Check if method was overridden anywhere in the inheritance chain (walks full MRO) method_name = "redact_standard_logging_payload_from_model_call_details" - is_overridden = method_name in type(self).__dict__ + is_overridden = getattr(type(self), method_name) is not getattr(CustomLogger, method_name) if not is_overridden: # Safe to skip - using default implementation