Skip to content

Commit

Permalink
improve error messages for PCAP/artifact processing beyond just icons,
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 14, 2023
1 parent 684d69f commit f3c9872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filebeat/scripts/filebeat-watch-zeeklogs-uploads-folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pcap-monitor/scripts/watch-pcap-uploads-folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3c9872

Please sign in to comment.