From d9f01671ae4f4fdd958f3a75bbb73598d8619c62 Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 28 Feb 2015 11:35:33 -0800 Subject: [PATCH] make it clearer that we adapt to old messages > Adapting to protocol vX for kernel Y instead of > Kernel Y speaks protocol version X some have interpreted the "Kernel speaks" statement was an error message; this should be clearer about what's happening, and that there is no error. --- IPython/html/services/kernels/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/services/kernels/handlers.py b/IPython/html/services/kernels/handlers.py index 308a5a99a..b21b3cc75 100644 --- a/IPython/html/services/kernels/handlers.py +++ b/IPython/html/services/kernels/handlers.py @@ -160,7 +160,7 @@ class ZMQChannelsHandler(AuthenticatedZMQStreamHandler): protocol_version = info.get('protocol_version', kernel_protocol_version) if protocol_version != kernel_protocol_version: self.session.adapt_version = int(protocol_version.split('.')[0]) - self.log.info("Kernel %s speaks protocol %s", self.kernel_id, protocol_version) + self.log.info("Adapting to protocol v%s for kernel %s", protocol_version, self.kernel_id) if not self._kernel_info_future.done(): self._kernel_info_future.set_result(info)