Skip to content

Commit

Permalink
Merge pull request #4034 from Carreau/adaptation-log
Browse files Browse the repository at this point in the history
When adapting also log the version jupyter_client is expecting.
  • Loading branch information
minrk authored Oct 10, 2018
2 parents dab6046 + 96cb061 commit b663bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/services/kernels/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _finish_kernel_info(self, info):
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 from protocol version {protocol_version} (kernel {kernel_id}) to {client_protocol_version} (client).".format(protocol_version=protocol_version, kernel_id=self.kernel_id, client_protocol_version=client_protocol_version))
if not self._kernel_info_future.done():
self._kernel_info_future.set_result(info)

Expand Down

0 comments on commit b663bf1

Please sign in to comment.