Skip to content

Commit

Permalink
changed the logger level for sentry, added comment explaining the ret…
Browse files Browse the repository at this point in the history
…ry in the link

Co-authored-by: sergey <[email protected]>
  • Loading branch information
2 people authored and pair committed Jan 11, 2024
1 parent 3ff6dd7 commit 304cc43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/lib/error_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def init_sentry():
integrations=[
LoggingIntegration(
level=logging.INFO, # Capture info and above as breadcrumbs
event_level=logging.WARNING,
event_level=logging.ERROR,
)
],
traces_sample_rate=0, # adjust the sample rate in production as needed
Expand Down
4 changes: 3 additions & 1 deletion server/links/deepgram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def get_transcription(vcon, index):


@retry(
wait=wait_exponential(multiplier=2, min=1, max=65),
wait=wait_exponential(
multiplier=2, min=1, max=65
), # Will wait 1 then 2 then 4 then ....32 seconds. All the retries together will take less than 65 seconds.
stop=stop_after_attempt(6),
before_sleep=before_sleep_log(logger, logging.INFO),
)
Expand Down

0 comments on commit 304cc43

Please sign in to comment.