File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -269,10 +269,6 @@ def _router(self):
269
269
endpoint = self ._api_value ,
270
270
)
271
271
272
- # Restful API
273
- bindmsg = f'Glances RESTful API Server started on { self .bind_url } api/{ self .API_VERSION } '
274
- logger .info (bindmsg )
275
-
276
272
# WEB UI
277
273
if not self .args .disable_webui :
278
274
# Template for the root index.html file
@@ -281,12 +277,16 @@ def _router(self):
281
277
# Statics files
282
278
self ._app .mount (self .url_prefix + '/static' , StaticFiles (directory = self .STATIC_PATH ), name = "static" )
283
279
284
- logger .info (f"Get WebUI in { self .STATIC_PATH } " )
280
+ logger .info (f"The WebUI is enable and got statics files in { self .STATIC_PATH } " )
285
281
286
282
bindmsg = f'Glances Web User Interface started on { self .bind_url } '
283
+ logger .info (bindmsg )
284
+ print (bindmsg )
287
285
else :
288
- bindmsg = 'The WebUI is disable (--disable-webui)'
286
+ logger . info ( 'The WebUI is disable (--disable-webui)' )
289
287
288
+ # Restful API
289
+ bindmsg = f'Glances RESTful API Server started on { self .bind_url } api/{ self .API_VERSION } '
290
290
logger .info (bindmsg )
291
291
print (bindmsg )
292
292
You can’t perform that action at this time.
0 commit comments