From 7d81f51a549c444397b2724bf30cbdf6ff214b78 Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 24 Sep 2018 19:41:48 +0200 Subject: [PATCH] logging reports for debugging --- backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend.py b/backend.py index 47997a2..45964a9 100755 --- a/backend.py +++ b/backend.py @@ -34,9 +34,10 @@ if __name__ == '__main__': reports = bot.crawl(user) for status in reports: if not user.is_appropriate(status): - continue + logger.info("Inaproppriate message: %d %s %s" % (user.id, status.author, status.text)) for bot2 in bots: bot2.post(user, status) + logger.info("Resent: %d %s %s" % (user.id, status.author, status.text)) except Exception: logger.error("Shutdown.", exc_info=True) shutdown()