@@ -339,12 +339,12 @@ def init_sockets(self):
339
339
self .shell_socket = context .socket (zmq .ROUTER )
340
340
self .shell_socket .linger = 1000
341
341
self .shell_port = self ._bind_socket (self .shell_socket , self .shell_port )
342
- self .log .debug ("shell ROUTER Channel on port: %i" % self .shell_port )
342
+ self .log .debug ("shell ROUTER Channel on port: %i" , self .shell_port )
343
343
344
344
self .stdin_socket = zmq .Context (context ).socket (zmq .ROUTER )
345
345
self .stdin_socket .linger = 1000
346
346
self .stdin_port = self ._bind_socket (self .stdin_socket , self .stdin_port )
347
- self .log .debug ("stdin ROUTER Channel on port: %i" % self .stdin_port )
347
+ self .log .debug ("stdin ROUTER Channel on port: %i" , self .stdin_port )
348
348
349
349
if hasattr (zmq , "ROUTER_HANDOVER" ):
350
350
# set router-handover to workaround zeromq reconnect problems
@@ -360,7 +360,7 @@ def init_control(self, context):
360
360
self .control_socket = context .socket (zmq .ROUTER )
361
361
self .control_socket .linger = 1000
362
362
self .control_port = self ._bind_socket (self .control_socket , self .control_port )
363
- self .log .debug ("control ROUTER Channel on port: %i" % self .control_port )
363
+ self .log .debug ("control ROUTER Channel on port: %i" , self .control_port )
364
364
365
365
self .debugpy_socket = context .socket (zmq .STREAM )
366
366
self .debugpy_socket .linger = 1000
@@ -384,7 +384,7 @@ def init_iopub(self, context):
384
384
self .iopub_socket = context .socket (zmq .PUB )
385
385
self .iopub_socket .linger = 1000
386
386
self .iopub_port = self ._bind_socket (self .iopub_socket , self .iopub_port )
387
- self .log .debug ("iopub PUB Channel on port: %i" % self .iopub_port )
387
+ self .log .debug ("iopub PUB Channel on port: %i" , self .iopub_port )
388
388
self .configure_tornado_logger ()
389
389
self .iopub_thread = IOPubThread (self .iopub_socket , pipe = True )
390
390
self .iopub_thread .start ()
@@ -398,7 +398,7 @@ def init_heartbeat(self):
398
398
hb_ctx = zmq .Context ()
399
399
self .heartbeat = Heartbeat (hb_ctx , (self .transport , self .ip , self .hb_port ))
400
400
self .hb_port = self .heartbeat .port
401
- self .log .debug ("Heartbeat REP Channel on port: %i" % self .hb_port )
401
+ self .log .debug ("Heartbeat REP Channel on port: %i" , self .hb_port )
402
402
self .heartbeat .start ()
403
403
404
404
def close (self ):
0 commit comments