We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0cfdb0 commit a0efdf9Copy full SHA for a0efdf9
src/resources/jupyter/log.py
@@ -37,8 +37,10 @@ def log(level, msg):
37
def log(level, msg):
38
logging.getLogger().log(level, msg)
39
40
-def log_error(msg, exc_info = False):
41
- logging.getLogger().log(logging.ERROR, msg, exc_info = exc_info, stack_info = not exc_info)
+def log_error(msg, exc_info = False, stack_info = None):
+ if stack_info is None:
42
+ stack_info = not exc_info
43
+ logging.getLogger().log(logging.ERROR, msg, exc_info = exc_info, stack_info = stack_info)
44
45
def trace(msg):
46
prev_frame = inspect.stack()[1]
0 commit comments