Skip to content
Browse files

make sure connection info gets printed when starting a kernel

changes log-level of '--existing...' message from info to critical
  • Loading branch information...
1 parent 890c602 commit cc9aebe90611bde507fa6cf7206a4afda421179b @minrk minrk committed Jun 29, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 IPython/zmq/
7 IPython/zmq/
@@ -141,7 +141,7 @@ def _bind_socket(self, s, port):
def init_sockets(self):
# Create a context, a session, and the kernel sockets.
- io.raw_print("Starting the kernel at pid:", os.getpid())
+"Starting the kernel at pid:", os.getpid())
context = zmq.Context.instance()
# Uncomment this to try closing the context.
# atexit.register(context.term)
@@ -164,8 +164,9 @@ def init_sockets(self):
# Helper to make it easier to connect to an existing kernel, until we have
# single-port connection negotiation fully implemented.
-"To connect another client to this kernel, use:")
-"--external shell={0} iopub={1} stdin={2} hb={3}".format(
+ # set log-level to critical, to make sure it is output
+ self.log.critical("To connect another client to this kernel, use:")
+ self.log.critical("--existing shell={0} iopub={1} stdin={2} hb={3}".format(
self.shell_port, self.iopub_port, self.stdin_port, self.hb_port))

0 comments on commit cc9aebe

Please sign in to comment.
Something went wrong with that request. Please try again.