From f53d1c06dc00043e6ea26d91efac9029eebfdded Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 24 Dec 2018 14:33:27 +0100 Subject: [PATCH] No need to be verbose upon Pushbullet websocket temporary disconnections --- platypush/backend/pushbullet/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platypush/backend/pushbullet/__init__.py b/platypush/backend/pushbullet/__init__.py index c0fe6e21c..ee85f44e0 100644 --- a/platypush/backend/pushbullet/__init__.py +++ b/platypush/backend/pushbullet/__init__.py @@ -152,7 +152,9 @@ class PushbulletBackend(Backend): try: push = await self.ws.recv() except Exception as e: - self.logger.exception(e) + self.logger.warning('Disconnected from ' + + 'Pushbullet: {}'. + format(str(e))) break self.on_push(self.ws, push)