Skip to content

Commit 20932fa

Browse files
committed
Fix #421
1 parent bb01287 commit 20932fa

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

web_app/server.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@
102102
{"service_unit" : "str2str_rtcm_svr.service", "name" : "rtcm_svr"},
103103
{'service_unit' : 'str2str_rtcm_serial.service', "name" : "rtcm_serial"},
104104
{"service_unit" : "str2str_file.service", "name" : "file"},
105-
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
105+
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
106106
{'service_unit' : 'rtkbase_archive.service', "name" : "archive_service"},
107107
{'service_unit' : 'rtkbase_raw2nmea.service', "name" : "raw2nmea"},
108+
{'service_unit' : 'rtkbase_gnss_web_proxy.service', "name": "RTKBase Reverse Proxy for Gnss receiver Web Server"}
108109
]
109110

110111
#Delay before rtkrcv will stop if no user is on status.html page
@@ -840,8 +841,8 @@ def getServicesStatus(emit_pingback=True):
840841
"""
841842

842843
#print("Getting services status")
843-
try:
844-
for service in services_list:
844+
for service in services_list:
845+
try:
845846
#print("unit qui déconne : ", service["name"])
846847
service["active"] = service["unit"].isActive()
847848
service["status"] = service["unit"].status()
@@ -853,11 +854,11 @@ def getServicesStatus(emit_pingback=True):
853854
else:
854855
service["state_ok"] = None
855856

856-
except Exception as e:
857-
#print("Error getting service info for: {} - {}".format(service['name'], e))
858-
#TODO manage better the error with rtkbase_archive.service. See https://github.com/Stefal/rtkbase/issues/162
859-
#and try to remove this "pass" without any notification (bad practive)
860-
pass
857+
except Exception as e:
858+
print("Error getting service info for: {} - {}".format(service['name'], e))
859+
#TODO manage better the error with rtkbase_archive.service. See https://github.com/Stefal/rtkbase/issues/162
860+
#and try to remove this "pass" without any notification (bad practive)
861+
pass
861862

862863
services_status = []
863864
for service in services_list:

0 commit comments

Comments
 (0)