From 5a74babf24fa2916e4ee3c2d44086628e3b5ed28 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 16 Apr 2013 16:13:14 +0200 Subject: [PATCH] Improved logging on server. --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index c501f80..41f3086 100644 --- a/morss.py +++ b/morss.py @@ -50,7 +50,7 @@ def log(txt): print txt if SERVER: with open('morss.log', 'a') as file: - file.write(str(txt).encode('utf-8') + "\n") + file.write(repr(txt).encode('utf-8') + "\n") def cleanXML(xml): table = string.maketrans('', '')