From 454b417a3c5a65426c4b8e6f0808836c4ee4b536 Mon Sep 17 00:00:00 2001 From: Carina Antunes <carina.oliveira.antunes@cern.ch> Date: Thu, 15 Dec 2022 15:28:50 +0100 Subject: [PATCH] debug webpush --- notifications_consumer/processors/webpush/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notifications_consumer/processors/webpush/utils.py b/notifications_consumer/processors/webpush/utils.py index 8021228..ab98634 100644 --- a/notifications_consumer/processors/webpush/utils.py +++ b/notifications_consumer/processors/webpush/utils.py @@ -54,6 +54,7 @@ def send_message(msg: str, device_token: str, encoding: str = None): raise # if 410 error the device should be removed form Device table, so logging if "410" in ex.message: + logging.exception("Debugging 410") logging.warning("Webpush CLEANUP needed for device %s", device_token) else: logging.error("Webpush error %s", ex.message) -- GitLab