mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix clean up prints from slack alerting
This commit is contained in:
parent
bf92a0b31c
commit
24e918b10f
1 changed files with 0 additions and 13 deletions
|
@ -140,8 +140,6 @@ class SlackAlerting:
|
|||
raise e
|
||||
|
||||
def _get_deployment_latencies_to_alert(self, metadata=None):
|
||||
print("inside get deployment latencies metadata", metadata) # noqa
|
||||
|
||||
if metadata is None:
|
||||
return None
|
||||
|
||||
|
@ -189,7 +187,6 @@ class SlackAlerting:
|
|||
request_info=request_info, kwargs=kwargs
|
||||
)
|
||||
# add deployment latencies to alert
|
||||
print("in response taking too long callback, kwargs: ", kwargs) # noqa
|
||||
if (
|
||||
kwargs is not None
|
||||
and "litellm_params" in kwargs
|
||||
|
@ -283,10 +280,6 @@ class SlackAlerting:
|
|||
f"`Requests are hanging - {self.alerting_threshold}s+ request time`"
|
||||
)
|
||||
|
||||
print(
|
||||
"inside hanging request callback, request_data: ", request_data
|
||||
) # noqa
|
||||
|
||||
# add deployment latencies to alert
|
||||
_deployment_latency_map = self._get_deployment_latencies_to_alert(
|
||||
metadata=request_data.get("metadata", {})
|
||||
|
@ -438,12 +431,6 @@ class SlackAlerting:
|
|||
level: str - Low|Medium|High - if calls might fail (Medium) or are failing (High); Currently, no alerts would be 'Low'.
|
||||
message: str - what is the alert about
|
||||
"""
|
||||
print(
|
||||
"inside send alert for slack, message: ",
|
||||
message,
|
||||
"self.alerting: ",
|
||||
self.alerting,
|
||||
)
|
||||
if self.alerting is None:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue