From be119a69afd48982b46e7999e3150137b39991ac Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 27 Feb 2026 18:42:44 +0100 Subject: [PATCH] Update health_monitor.py --- AppImage/scripts/health_monitor.py | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/AppImage/scripts/health_monitor.py b/AppImage/scripts/health_monitor.py index 4b146a97..4e8a3c48 100644 --- a/AppImage/scripts/health_monitor.py +++ b/AppImage/scripts/health_monitor.py @@ -2189,23 +2189,23 @@ class HealthMonitor: 'log_critical_errors': {'active': unique_critical_count > 0, 'severity': 'CRITICAL', 'reason': f'{unique_critical_count} critical error(s) found', 'dismissable': False}, } - - # Track which sub-checks were dismissed - dismissed_keys = set() - for err_key, info in log_sub_checks.items(): - if info['active']: - is_dismissable = info.get('dismissable', True) - result = health_persistence.record_error( - error_key=err_key, - category='logs', - severity=info['severity'], - reason=info['reason'], - details={'dismissable': is_dismissable} - ) - if result and result.get('type') == 'skipped_acknowledged': - dismissed_keys.add(err_key) - elif health_persistence.is_error_active(err_key): - health_persistence.clear_error(err_key) + + # Track which sub-checks were dismissed + dismissed_keys = set() + for err_key, info in log_sub_checks.items(): + if info['active']: + is_dismissable = info.get('dismissable', True) + result = health_persistence.record_error( + error_key=err_key, + category='logs', + severity=info['severity'], + reason=info['reason'], + details={'dismissable': is_dismissable} + ) + if result and result.get('type') == 'skipped_acknowledged': + dismissed_keys.add(err_key) + elif health_persistence.is_error_active(err_key): + health_persistence.clear_error(err_key) # Build checks dict - downgrade dismissed items to INFO def _log_check_status(key, active, severity):