From 1ea6041dfafbdb6dd498895c815a057ad5881130 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 13 Apr 2019 08:06:40 +0000 Subject: [PATCH] Log response from Mercury API --- platypush/plugins/http/webpage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/http/webpage.py b/platypush/plugins/http/webpage.py index cfa6dc8cc..b175e7111 100644 --- a/platypush/plugins/http/webpage.py +++ b/platypush/plugins/http/webpage.py @@ -61,6 +61,7 @@ class HttpWebpagePlugin(Plugin): if not response or not response.ok: raise RuntimeError("Unable to parse content for {}: {}".format(url, response.reason)) + self.logger.info('Got response from Mercury API: {}'.format(response)) title = response.json().get('title', 'No_title_{}'.format(int(time.time()))) content = '

{title}

{content}'.\ format(title=title, content=response.json()['content'],