You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(bc.WARNING+'[hpcnotebook] '+bc.ENDC+'Creating an SSL certificate to enable a secure connection; the certificate will be in your ~/.ssh directory\n')
84
-
108
+
logger.info("Creating an SSL certificate to enable a secure connection; the certificate will be in your ~/.ssh directory")
109
+
85
110
# make sure the .ssh directory is there before continuing
print(bc.WARNING+"Overriding the port found in the existing configuration"+bc.ENDC)
155
+
logger.warning(bc.WARNING+"Overriding the port found in the existing configuration"+bc.ENDC)
131
156
argv.append('--port={port}'.format(port=port))
132
157
133
158
# determine if we're running on a compute node
134
-
if'LSB_HOSTS'inos.environ:
159
+
ifHOST_ENVIRONinos.environ:
135
160
compute=True
136
161
else:
137
162
compute=False
@@ -143,7 +168,7 @@ def launch(ctx):
143
168
else:
144
169
ip='localhost'
145
170
146
-
print(bc.BOLD+"To access the notebook, inspect the output below for the port number, then point your browser to https://{ip}:<port_number>".format(ip=ip) +bc.ENDC)
171
+
logger.info(bc.BOLD+"To access the notebook, inspect the output below for the port number, then point your browser to https://{ip}:<port_number>".format(ip=ip) +bc.ENDC)
0 commit comments