##// END OF EJS Templates
Made some changes to message and logic as advised by Fernando.
dkua -
Show More
@@ -471,12 +471,12 b' class NotebookApp(BaseIPythonApplication):'
471 self.web_app.password = self.password
471 self.web_app.password = self.password
472 self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options)
472 self.http_server = httpserver.HTTPServer(self.web_app, ssl_options=ssl_options)
473 if not self.ip:
473 if not self.ip:
474 warning = "WARNING: The notebook server is listening on all IP addresses. "
474 warning = "WARNING: The notebook server is listening on all IP addresses"
475 if ssl_options is None:
475 if ssl_options is None:
476 warning += "And not using any encryption. "
476 warning += ", and not using any encryption"
477 if not (self.read_only and not self.password):
477 if not self.password and not self.read_only:
478 warning += "And not using authentication. "
478 warning += ", and not using authentication"
479 self.log.critical(warning + "This is highly insecure and not recommended.")
479 self.log.critical(warning + ". This is highly insecure and not recommended.")
480 success = None
480 success = None
481 for port in random_ports(self.port, self.port_retries+1):
481 for port in random_ports(self.port, self.port_retries+1):
482 try:
482 try:
General Comments 0
You need to be logged in to leave comments. Login now