Skip to content

Commit

Permalink
Adding traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed May 24, 2024
1 parent 8db0a1f commit d7554a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system-health/health_checker/sysmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ def system_service(self):
self.update_system_status()

from queue import Empty
import traceback
# Queue to receive the STATEDB and Systemd state change event
while not self.task_stopping_event.is_set():
try:
Expand All @@ -491,6 +492,7 @@ def system_service(self):
pass
except Exception as e:
logger.log_error("system_service"+str(e))
logger.log_error(traceback.format_exc())

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

0 comments on commit d7554a1

Please sign in to comment.