Skip to content

Commit

Permalink
Merge pull request #2 from CERT-Polska/feature/more-logging
Browse files Browse the repository at this point in the history
Add ignorelist log
  • Loading branch information
nazywam authored Nov 21, 2023
2 parents 90b43cd + f97f245 commit 40cc9f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions karton/pcap_miner/pcap_miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ def __init__(self, *args, **kwargs) -> None:
self.max_results = self.config.getint("pcap-miner", "max_results", fallback=24)

self.ignorelist = {}
if self.config.get("pcap-miner", "ignore_list"):
with open(self.config.get("pcap-miner", "ignore_list"), "r") as f:
self.ignorelist = json.load(f)
ignore_path = self.config.get("pcap-miner", "ignore_list")
if ignore_path:
self.ignorelist = json.loads(Path(ignore_path).read_text())
self.log.info("Loaded ignorelist from %s", ignore_path)

self.analyzers = {
"network-http": (
Expand Down

0 comments on commit 40cc9f0

Please sign in to comment.