Skip to content

Commit

Permalink
Issue #12786: Add better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollo Konig Brock committed Feb 1, 2021
1 parent 20bd9e7 commit b81f7e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

from ._version import kernel_protocol_version

CONTROL_PRIORITY = 1
SHELL_PRIORITY = 10
CONTROL_PRIORITY = (1, 'control')
SHELL_PRIORITY = (10, 'shell')


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

new_args = (msg, idents, stream)
Expand Down

0 comments on commit b81f7e2

Please sign in to comment.