From 2560f8c52a5c99da318196e1cb4cfaeb3ad3bf05 Mon Sep 17 00:00:00 2001 From: "Nick.Cheng" Date: Fri, 22 May 2026 20:00:34 +0800 Subject: [PATCH] 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) --- litellm/proxy/common_utils/callback_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/proxy/common_utils/callback_utils.py b/litellm/proxy/common_utils/callback_utils.py index b5dffe4494c..810d0552ef1 100644 --- a/litellm/proxy/common_utils/callback_utils.py +++ b/litellm/proxy/common_utils/callback_utils.py @@ -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