Commit dd805eba authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Remove som log cruft. Allow non UTF8 in log messages

parent eee880a6
......@@ -35,7 +35,6 @@ class HashTOC:
tmp = [ s.strip().decode('utf8') for s in l.split(b':') ]
if tmp[0].startswith('#fields'):
fields = [ rename.get(f) or f for f in tmp[1:] ]
print(fields, file=sys.stderr)
tocEntry = collections.namedtuple('TOCEntry', fields)
N = len(tmp) - 1
pass
......
......@@ -71,7 +71,7 @@ class LOG:
if encoding == None:
return b
else:
return b.decode(encoding)
return b.decode(encoding, errors='surrogateescape')
self.decode = decode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment