mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix: Check full MRO for method override detection
This commit is contained in:
parent
492ad0c282
commit
5d69c66813
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue