From fafd04eb3994ada49ef40883947f0849d269a790 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 18 Dec 2018 18:50:23 +0100 Subject: [PATCH] Add feed url to error logging --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 3578d95..32d6db2 100644 --- a/bot.py +++ b/bot.py @@ -256,9 +256,9 @@ def check_feed(bot, key): data = feedparser.parse(feed_url) if 'link' not in data.feed: if 'status' in data and data["status"] != 200: - logger.warning('Kein gültiger Feed, HTTP-Status-Code ' + str(data["status"])) + logger.warning(feed_url + ' - Kein gültiger Feed, HTTP-Status-Code ' + str(data["status"])) else: - logger.warning('Kein gültiger Feed: ' + str(data.bozo_exception)) + logger.warning(feed_url + ' - Kein gültiger Feed: ' + str(data.bozo_exception)) return None if 'title' not in data.feed: feed_title = data.feed['link']