From f3c9872c7c8a5d807f989c39cf7ffc887096da44 Mon Sep 17 00:00:00 2001 From: SG Date: Tue, 14 Nov 2023 11:39:02 -0700 Subject: [PATCH] improve error messages for PCAP/artifact processing beyond just icons, idaholab/Malcolm#276 --- filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py | 2 +- pcap-monitor/scripts/watch-pcap-uploads-folder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py b/filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py index 1dfccf54a..7139361b6 100755 --- a/filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py +++ b/filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py @@ -77,7 +77,7 @@ def file_processor(pathname, **kwargs): else: # unhandled file type uploaded, delete it - logger.warning(f"{scriptName}:\tšŸ—‘\t{pathname} [{fileMime}]") + logger.warning(f"{scriptName}:\tšŸ—‘\t{pathname} [{fileMime} unsupported file type, deleted]") os.unlink(pathname) except Exception as genericError: diff --git a/pcap-monitor/scripts/watch-pcap-uploads-folder.py b/pcap-monitor/scripts/watch-pcap-uploads-folder.py index dbc9a7fa7..2b7847f0e 100755 --- a/pcap-monitor/scripts/watch-pcap-uploads-folder.py +++ b/pcap-monitor/scripts/watch-pcap-uploads-folder.py @@ -88,7 +88,7 @@ def file_processor(pathname, **kwargs): else: # unhandled file type uploaded, delete it - logger.warning(f"{scriptName}:\tšŸ—‘\t{pathname} ({fileMime}/{fileType})") + logger.warning(f"{scriptName}:\tšŸ—‘\t{pathname} ({fileMime}/{fileType} unsupported file type, deleted)") os.unlink(pathname) except Exception as genericError: