From 3d1d326528667f7424561b00a2f8694b1ddc1827 Mon Sep 17 00:00:00 2001 From: Tom Chapin Date: Sat, 10 Feb 2024 17:35:54 -0800 Subject: [PATCH] Filter out "networkStatusForFlags" from kernel messages --- OS/01/utils/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OS/01/utils/kernel.py b/OS/01/utils/kernel.py index dc58272..590b14a 100644 --- a/OS/01/utils/kernel.py +++ b/OS/01/utils/kernel.py @@ -33,7 +33,7 @@ def custom_filter(message): elif 'USB' in message: return message # Check for network related keywords - elif any(keyword in message for keyword in ['network', 'IP', 'internet', 'LAN', 'WAN', 'router', 'switch']): + elif any(keyword in message for keyword in ['network', 'IP', 'internet', 'LAN', 'WAN', 'router', 'switch']) and "networkStatusForFlags" not in message: return message else: return None