mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Log the ratio of slow notifications
This commit is contained in:
@@ -258,7 +258,7 @@ def switch_current_sms_provider_on_slow_delivery():
|
||||
"""
|
||||
current_provider = get_current_provider('sms')
|
||||
if current_provider.updated_at > datetime.utcnow() - timedelta(minutes=10):
|
||||
current_app.logger.info("Slow delivery provider switched less than 10 minutes ago.")
|
||||
current_app.logger.info("Slow delivery notifications provider switched less than 10 minutes ago.")
|
||||
return
|
||||
slow_delivery_notifications = is_delivery_slow_for_provider(
|
||||
provider=current_provider.identifier,
|
||||
|
||||
Reference in New Issue
Block a user