Skip to content

Commit b81f7e2

Browse files
author
Rollo Konig Brock
committed
Issue #12786: Add better logging
1 parent 20bd9e7 commit b81f7e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipykernel/kernelbase.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
from ._version import kernel_protocol_version
4040

41-
CONTROL_PRIORITY = 1
42-
SHELL_PRIORITY = 10
41+
CONTROL_PRIORITY = (1, 'control')
42+
SHELL_PRIORITY = (10, 'shell')
4343

4444

4545
class Kernel(SingletonConfigurable):
@@ -390,7 +390,7 @@ def schedule_dispatch(self, msg, priority, dispatch, stream=None):
390390
try:
391391
msg = self.session.deserialize(msg, content=True, copy=False)
392392
except:
393-
self.log.error("Invalid Message", exc_info=True)
393+
self.log.error("Invalid %s Message", priority[1], exc_info=True)
394394
return
395395

396396
new_args = (msg, idents, stream)

0 commit comments

Comments
 (0)