Skip to content

Commit 4f3f0da

Browse files
committed
more robust exception handling logging
1 parent 493390e commit 4f3f0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sliderule/sliderule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def __raiseexceptrec(rec):
336336
lvl = rec["level"]
337337
if rc in handleexcept:
338338
if not handleexcept[rc]["expected"]:
339-
logger.critical("Unexpected error: %s", handleexcept[rc]["name"])
339+
logger.critical("%s, unexpected exception <%d>: %s", handleexcept[rc]["name"], rc, rec["text"])
340340
elif verbose:
341341
eventlogger[rec['level']]("%s exception <%d>: %s", handleexcept[rc]["name"], rc, rec["text"])
342342
if not handleexcept[rc]["fatal"]:

0 commit comments

Comments
 (0)