diff --git a/litellm/integrations/lunary.py b/litellm/integrations/lunary.py index 51e09a2d8..79491dfc6 100644 --- a/litellm/integrations/lunary.py +++ b/litellm/integrations/lunary.py @@ -16,7 +16,6 @@ def parse_usage(usage): "prompt": usage["prompt_tokens"] if "prompt_tokens" in usage else 0, } - def parse_messages(input): if input is None: return None @@ -68,7 +67,6 @@ class LunaryLogger: print("Lunary not installed. Please install it using 'pip install lunary'") raise ImportError - def log_event( self, kwargs, @@ -87,7 +85,6 @@ class LunaryLogger: ): # Method definition try: - print_verbose(f"Lunary Logging - Logging request for model {model}") litellm_params = kwargs.get("litellm_params", {}) @@ -97,9 +94,6 @@ class LunaryLogger: tags = litellm_params.pop("tags", None) or [] - - - if extra: extra.pop("extra_body", None) extra.pop("user", None) @@ -144,7 +138,6 @@ class LunaryLogger: runtime="litellm", tags=tags, extra=extra, - # user_props=user_props, ) self.lunary_client.track_event( @@ -158,7 +151,6 @@ class LunaryLogger: token_usage=usage ) - except: # traceback.print_exc() print_verbose(f"Lunary Logging Error - {traceback.format_exc()}") diff --git a/litellm/utils.py b/litellm/utils.py index e2a416740..2af227be3 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -1350,14 +1350,9 @@ class Logging: # this only logs streaming once, complete_streaming_response exists i.e when stream ends if self.stream: - print_verbose("reaches lunary for streaming logging!") - print(kwargs) if "complete_streaming_response" not in kwargs: break else: - print_verbose( - "reaches lunary for streaming logging!" - ) result = kwargs["complete_streaming_response"] lunaryLogger.log_event(