                             winston.debug("restarted console server, then got port = #{port}")
                             cb()
             (cb) =>
-                # Got port -- now create the new session
+                winston.debug("console: Got port -- now create the new session")
                 @_new_session mesg, port, (err, _session) =>
                     if err
                         cb(err)

            # Request a Console session from console_server
            misc_node.enable_mesg(console_socket)
            console_socket.write_mesg('json', mesg)
            # Read one JSON message back, which describes the session
            console_socket.once 'mesg', (type, desc) =>
                if not history?
                    history = new Buffer(0)
                # in future, history could be read from a file

    # Get or create session with given uuid.
    # Can be safely called several times at once without creating multiple sessions...
    get_session: (mesg, cb) =>
        # NOTE: must be robust against multiple clients opening same session_id at once, which
        # would be likely to happen on network reconnect.
        winston.debug("get_session: console session #{mesg.session_uuid}")
        session = @_sessions[mesg.session_uuid]
