mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
When adapting also log the version jupyter_client is expecting.
It's still (IMHO) unclear how the adaptation goes. Like does "adapting to protocol X.Y.Z." mean the end-result is X.Y.Z or what you got is X.Y.Z and it's X.Y.W after adaptation.
This commit is contained in:
parent
d772277c0b
commit
7e140c5baf
@ -187,7 +187,7 @@ class ZMQChannelsHandler(AuthenticatedZMQStreamHandler):
|
||||
protocol_version = info.get('protocol_version', client_protocol_version)
|
||||
if protocol_version != client_protocol_version:
|
||||
self.session.adapt_version = int(protocol_version.split('.')[0])
|
||||
self.log.info("Adapting to protocol v%s for kernel %s", protocol_version, self.kernel_id)
|
||||
self.log.info("Adapting to protocol v%s for kernel %s (client expecting %s)", protocol_version, self.kernel_id, client_protocol_version)
|
||||
if not self._kernel_info_future.done():
|
||||
self._kernel_info_future.set_result(info)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user