Merge pull request #16 from tomchapin/feature/process-filtering

Filter out "networkStatusForFlags" from kernel messages
This commit is contained in:
killian 2024-02-10 17:46:18 -08:00 committed by GitHub
commit 917d13b9fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,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