Show traceback on higher debug levels
authorLaurent Bachelier <laurent@bachelier.name>
Tue, 26 Nov 2013 23:24:51 +0000 (00:24 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 26 Nov 2013 23:38:17 +0000 (18:38 -0500)
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irkerd

diff --git a/irkerd b/irkerd
index 0453a0a284ae71c73696d5228edb1bdd6fe07788..9693e6d687ea7fd1de0176f52a6e01a823171ba0 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -540,6 +540,7 @@ class Connection:
                                 self.connection.privmsg(channel, segment)
                             except ValueError as err:
                                 self.irker.irc.debug(1, "irclib rejected a message to %s on %s because: %s" % (channel, self.servername, str(err)))
+                                self.irker.irc.debug(50, err.format_exc())
                             time.sleep(ANTI_FLOOD_DELAY)
                     self.last_xmit = self.channels_joined[channel] = time.time()
                     self.irker.irc.debug(1, "XMIT_TTL bump (%s transmission) at %s" % (self.servername, time.asctime()))