diff options
author | Felix Bauer <felix.bauer@atos.net> | 2019-10-15 21:53:05 +0200 |
---|---|---|
committer | Felix Bauer <jack@ai4me.de> | 2019-10-29 12:37:07 +0100 |
commit | bc27dd62ff5fe6952c0282ff3083ae41d10a8cb5 (patch) | |
tree | b2b5f4df1ceb3d52dd89c97738a1c4c120e6b84d | |
parent | 2fd4570d0bb7d2753ec25486cc97460921b9b68b (diff) |
Replaced logging of entire exception with precise warning
Exception loading cuckoo json report is no longer logged. Instead we now log a
warning message.
-rw-r--r-- | peekaboo/toolbox/cuckoo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/peekaboo/toolbox/cuckoo.py b/peekaboo/toolbox/cuckoo.py index dba7879..68c4429 100644 --- a/peekaboo/toolbox/cuckoo.py +++ b/peekaboo/toolbox/cuckoo.py @@ -204,7 +204,8 @@ class CuckooEmbed(Cuckoo): try: report = json.load(data) except ValueError as e: - logger.exception(e) + logger.warning("Error loading JSON report for cuckoo " + "job id %d", job_id) return report |