From b753d8e413ce72597c1860170017c5f53deffcbb Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Mon, 16 Feb 2026 19:08:42 +0530 Subject: [PATCH] Update litellm/litellm_core_utils/litellm_logging.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/litellm_core_utils/litellm_logging.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index ed8ef994b0..b7b336dbbe 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -3152,11 +3152,12 @@ class Logging(LiteLLMLoggingBaseClass): cb_name = self._get_callback_name(cb) # Check if this is a Langfuse logger (vanilla or OTEL) - is_langfuse = ( - cb_name.lower() - in ["langfuse", "langfuselogger", "langfuse_otel", "langfuseotellogger"] - or "langfuse" in cb_name.lower() - ) + is_langfuse = cb_name.lower() in [ + "langfuse", + "langfuselogger", + "langfuse_otel", + "langfuseotellogger", + ] if is_langfuse: if langfuse_logger_found is None: