Log content of lines that need fallback encoding
This commit is contained in:
parent
c842c459f4
commit
1b7a8bc896
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ class Socket(IRCObject.Object):
|
|||
try:
|
||||
decoded_line = line.decode(self._encoding)
|
||||
except UnicodeDecodeError:
|
||||
self.log.trace("can't decode line with '%s', falling back",
|
||||
[self._encoding])
|
||||
self.log.trace("can't decode line with '%s', falling back: %s",
|
||||
[self._encoding, line])
|
||||
try:
|
||||
decoded_line = line.decode(self._fallback_encoding)
|
||||
except UnicodeDecodeError:
|
||||
|
|
Loading…
Reference in a new issue