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/kernelapp.py
View
7 IPython/zmq/kernelapp.py
@@ -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())
+ self.log.info("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.
- self.log.info("To connect another client to this kernel, use:")
- self.log.info("--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.