From 8440320031211f5ad3c0d6ac0717b1887e7a6895 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Apr 2020 23:46:05 +0000 Subject: [PATCH] Don't swallow the stack trace in backend.http.request if a request fails --- platypush/backend/http/request/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/backend/http/request/__init__.py b/platypush/backend/http/request/__init__.py index b8f58ab09..c54ba978b 100644 --- a/platypush/backend/http/request/__init__.py +++ b/platypush/backend/http/request/__init__.py @@ -76,6 +76,7 @@ class HttpRequest(object): response.raise_for_status() except Exception as e: + self.logger.exception(e) self.logger.warning('Encountered an error while retrieving {}: {}'. format(self.args.url, str(e)))