Improved logging on server.

master
pictuga 2013-04-16 16:13:14 +02:00
parent 7b1c32eac2
commit 5a74babf24
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def log(txt):
print txt print txt
if SERVER: if SERVER:
with open('morss.log', 'a') as file: 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): def cleanXML(xml):
table = string.maketrans('', '') table = string.maketrans('', '')