From adebe23232cfb4848f5abde2570227db73840436 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 5 May 2013 15:33:46 +0200 Subject: [PATCH] Better logging when running as Liferea hook --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 6efbe21..fde21b0 100644 --- a/morss.py +++ b/morss.py @@ -55,7 +55,7 @@ if 'REQUEST_URI' in os.environ: def log(txt): if not 'REQUEST_URI' in os.environ: if os.getenv('DEBUG', False): - print txt + print repr(txt) else: with open('morss.log', 'a') as file: file.write(repr(txt).encode('utf-8') + "\n")