From 65ba24e46d29dda56d30302456925bf5c9894ae9 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 12 May 2025 15:32:54 -0400 Subject: [PATCH] if drive not in issue --- hwmonDaemon.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index a7375ca..fd3b6c8 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -437,10 +437,6 @@ class SystemHealthMonitor: hostname = socket.gethostname() timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") priority = "⚠ HIGH" if "CRITICAL" in issue else "● MEDIUM" - - # Add debug statements to track the issue - logger.debug(f"Generating description for issue: {issue}") - logger.debug(f"Issue type: {type(issue)}") content_width = self.STANDARD_WIDTH - 2 banner = f""" @@ -472,7 +468,7 @@ class SystemHealthMonitor: """ if "Drive" in issue: - device = re.search(r'/dev/[a-zA-Z0-9]+', issue).group(0) + device = re.search(r'/dev/[a-zA-Z0-9]+', issue).group(0) if '/dev/' in issue else None drive_info = next((d for d in health_report['drives_health']['drives'] if d['device'] == device), None) drive_details = self._get_drive_details(device)