##// END OF EJS Templates
log user tracebacks in the kernel (INFO-level)
MinRK -
Show More
@@ -396,6 +396,10 b' class Kernel(Configurable):'
396 reply_content['engine_info'] = e_info
396 reply_content['engine_info'] = e_info
397 # reset after use
397 # reset after use
398 shell._reply_content = None
398 shell._reply_content = None
399
400 if 'traceback' in reply_content:
401 self.log.info("Exception in execute request:\n%s", '\n'.join(reply_content['traceback']))
402
399
403
400 # At this point, we can tell whether the main code execution succeeded
404 # At this point, we can tell whether the main code execution succeeded
401 # or not. If it did, we proceed to evaluate user_variables/expressions
405 # or not. If it did, we proceed to evaluate user_variables/expressions
@@ -596,6 +600,7 b' class Kernel(Configurable):'
596
600
597 self.session.send(self.iopub_socket, u'pyerr', reply_content, parent=parent,
601 self.session.send(self.iopub_socket, u'pyerr', reply_content, parent=parent,
598 ident=self._topic('pyerr'))
602 ident=self._topic('pyerr'))
603 self.log.info("Exception in apply request:\n%s", '\n'.join(reply_content['traceback']))
599 result_buf = []
604 result_buf = []
600
605
601 if reply_content['ename'] == 'UnmetDependency':
606 if reply_content['ename'] == 'UnmetDependency':
General Comments 0
You need to be logged in to leave comments. Login now