newline changes in error logger
local variables were right next to the next traceback in errors.log even though the belonged to the previous one
This commit is contained in:
parent
d602a33efd
commit
0a7752fd15
@ -60,10 +60,10 @@ class handle_error:
|
|||||||
if _local.level > 1:
|
if _local.level > 1:
|
||||||
raise # the outermost caller should handle this
|
raise # the outermost caller should handle this
|
||||||
|
|
||||||
fn = lambda: errlog("\n" + data)
|
fn = lambda: errlog("\n{0}\n\n".format(data))
|
||||||
data = traceback.format_exc()
|
data = traceback.format_exc()
|
||||||
cli = None
|
cli = None
|
||||||
variables = ["\nLocal variables from innermost frame:\n"]
|
variables = ["\nLocal variables from innermost frame:"]
|
||||||
for name, value in _local.frame_locals.items():
|
for name, value in _local.frame_locals.items():
|
||||||
if isinstance(value, IRCClient):
|
if isinstance(value, IRCClient):
|
||||||
cli = value
|
cli = value
|
||||||
|
Loading…
Reference in New Issue
Block a user