Improved logging around detection results

This commit is contained in:
Nex
2021-08-12 12:56:12 +02:00
parent 6e19d34700
commit 8d93ab66c9

View File

@@ -167,10 +167,14 @@ def run_module(module):
else:
try:
module.check_indicators()
if not module.detected:
module.log.info("No detection!")
except NotImplementedError:
module.log.info("The %s module does not support checking for indicators",
module.__class__.__name__)
pass
else:
if module.indicators and not module.detected:
module.log.info("The %s module produced no detections!",
module.__class__.__name__)
try:
module.to_timeline()