mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Better.
This commit is contained in:
parent
b085ba5ba3
commit
25b21895d9
@ -103,9 +103,10 @@ class IrcHandler(logging.Handler):
|
|||||||
class IrcFormatter(log.Formatter):
|
class IrcFormatter(log.Formatter):
|
||||||
def formatException(self, (E, e, tb)):
|
def formatException(self, (E, e, tb)):
|
||||||
L = [utils.exnToString(e), '::']
|
L = [utils.exnToString(e), '::']
|
||||||
frames = utils.stackTrace(frame=tb.tb_frame, compact=True).split()
|
frames = utils.stackTrace(frame=tb.tb_frame).split()
|
||||||
frames.reverse()
|
frames.reverse()
|
||||||
L.extend(frames)
|
L.extend(frames)
|
||||||
|
frames.reverse() # Back to front, please.
|
||||||
del tb
|
del tb
|
||||||
while sum(imap(len, L)) > 350:
|
while sum(imap(len, L)) > 350:
|
||||||
L.pop()
|
L.pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user