diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 24cf999..428f244 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -307,7 +307,9 @@ class SystemHealthMonitor: # Create tickets for any detected critical issues self._create_tickets_for_issues(health_report) except Exception as e: - print(f"Unexpected error during health check: {e}") + import traceback + logger.error(f"Unexpected error during health check: {e}") + logger.error(traceback.format_exc()) def perform_health_checks(self) -> Dict[str, Any]: """