aboutsummaryrefslogtreecommitdiff
path: root/src/IRCSocket.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-06 17:19:37 +0000
committerGravatar jesopo2019-03-06 17:19:37 +0000
commit1b7a8bc89680485d538e5b8769368e2744b68b41 (patch)
tree4fe02bf7098e06f5b9a9c995e777aeffe27732e5 /src/IRCSocket.py
parentSpecifically only catch UnicodeDecodeError in IRCSocket.read (diff)
signature
Log content of lines that need fallback encoding
Diffstat (limited to 'src/IRCSocket.py')
-rw-r--r--src/IRCSocket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IRCSocket.py b/src/IRCSocket.py
index 3e805908..cea00862 100644
--- a/src/IRCSocket.py
+++ b/src/IRCSocket.py
@@ -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: