Skip to content

Commit d7554a1

Browse files
committed
Adding traceback
1 parent 8db0a1f commit d7554a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/system-health/health_checker/sysmonitor.py

+2
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ def system_service(self):
477477
self.update_system_status()
478478

479479
from queue import Empty
480+
import traceback
480481
# Queue to receive the STATEDB and Systemd state change event
481482
while not self.task_stopping_event.is_set():
482483
try:
@@ -491,6 +492,7 @@ def system_service(self):
491492
pass
492493
except Exception as e:
493494
logger.log_error("system_service"+str(e))
495+
logger.log_error(traceback.format_exc())
494496

495497
#cleanup tables "'ALL_SERVICE_STATUS*', 'SYSTEM_READY*'" from statedb
496498
self.state_db.delete_all_by_pattern(self.state_db.STATE_DB, "ALL_SERVICE_STATUS|*")

0 commit comments

Comments
 (0)