From 43e417870357b146b8a74a30fc03ed969cce169e Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 3 Mar 2025 21:11:51 -0500 Subject: [PATCH] Changed Logging levels --- hwmonDaemon.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index d6e16eb..1c4944e 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -4,7 +4,7 @@ from typing import Dict, Any, List # Create a logger logger = logging.getLogger(__name__) -logger.setLevel(logging.DEBUG) +logger.setLevel(logging.INFO) # Create a console handler and set its level to DEBUG console_handler = logging.StreamHandler() @@ -538,13 +538,13 @@ class SystemHealthMonitor: if network_health.get(network, {}).get('issues'): issues.extend(network_health[network]['issues']) - logger.debug("=== Issue Detection Started ===") - logger.debug(f"Checking drives: {len(health_report['drives_health']['drives'])} found") - logger.debug(f"Memory status: {health_report['memory_health']['status']}") - logger.debug(f"CPU status: {health_report['cpu_health']['status']}") - logger.debug(f"Network status: {health_report['network_health']}") - logger.debug(f"Detected issues: {issues}") - logger.debug("=== Issue Detection Completed ===\n") + logger.info("=== Issue Detection Started ===") + logger.info(f"Checking drives: {len(health_report['drives_health']['drives'])} found") + logger.info(f"Memory status: {health_report['memory_health']['status']}") + logger.info(f"CPU status: {health_report['cpu_health']['status']}") + logger.info(f"Network status: {health_report['network_health']}") + logger.info(f"Detected issues: {issues}") + logger.info("=== Issue Detection Completed ===\n") return issues