Improved logging on server.
parent
7b1c32eac2
commit
5a74babf24
2
morss.py
2
morss.py
|
@ -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('', '')
|
||||||
|
|
Loading…
Reference in New Issue