refactor(proxy): drop redundant CustomLogger import in callback helper

CustomLogger is already imported at module scope (line 6), so the local
re-import inside _register_custom_loggers_into_all_callback_lists is
redundant. Addresses greptile review note on PR #28357.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick.Cheng 2026-05-22 20:00:34 +08:00
parent 03477c1b8b
commit 2560f8c52a

View file

@ -361,8 +361,6 @@ def _register_custom_loggers_into_all_callback_lists(
Idempotent: callbacks already present in a list are not added again.
"""
from litellm.integrations.custom_logger import CustomLogger
for callback in callbacks:
if not isinstance(callback, CustomLogger):
continue