Changed Logging levels
This commit is contained in:
@ -4,7 +4,7 @@ from typing import Dict, Any, List
|
|||||||
|
|
||||||
# Create a logger
|
# Create a logger
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.INFO)
|
||||||
|
|
||||||
# Create a console handler and set its level to DEBUG
|
# Create a console handler and set its level to DEBUG
|
||||||
console_handler = logging.StreamHandler()
|
console_handler = logging.StreamHandler()
|
||||||
@ -538,13 +538,13 @@ class SystemHealthMonitor:
|
|||||||
if network_health.get(network, {}).get('issues'):
|
if network_health.get(network, {}).get('issues'):
|
||||||
issues.extend(network_health[network]['issues'])
|
issues.extend(network_health[network]['issues'])
|
||||||
|
|
||||||
logger.debug("=== Issue Detection Started ===")
|
logger.info("=== Issue Detection Started ===")
|
||||||
logger.debug(f"Checking drives: {len(health_report['drives_health']['drives'])} found")
|
logger.info(f"Checking drives: {len(health_report['drives_health']['drives'])} found")
|
||||||
logger.debug(f"Memory status: {health_report['memory_health']['status']}")
|
logger.info(f"Memory status: {health_report['memory_health']['status']}")
|
||||||
logger.debug(f"CPU status: {health_report['cpu_health']['status']}")
|
logger.info(f"CPU status: {health_report['cpu_health']['status']}")
|
||||||
logger.debug(f"Network status: {health_report['network_health']}")
|
logger.info(f"Network status: {health_report['network_health']}")
|
||||||
logger.debug(f"Detected issues: {issues}")
|
logger.info(f"Detected issues: {issues}")
|
||||||
logger.debug("=== Issue Detection Completed ===\n")
|
logger.info("=== Issue Detection Completed ===\n")
|
||||||
|
|
||||||
return issues
|
return issues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user