diff --git a/files/gvm_library.py b/files/gvm_library.py index 9a0924033d5e901e7b74179d1d99ee7b6e0912f0..816c3454421065c74c6963624a669a23ca668f73 100644 --- a/files/gvm_library.py +++ b/files/gvm_library.py @@ -463,18 +463,19 @@ class Task: glob_severity = -1 # severities are not negative glob_threat = 'None' for o, s, t, p in zip(o_ids, severities, treats, ports): - logging.debug(f"Detected oid: {o}, severity: {s}, threat: {t} and port: {p}") - + msg = f"Detected oid: {o}, severity: {s}, threat: {t} and port: {p} => " if s >= 4: # If severity is not negligible if o in accepted_issues: - logging.debug(f"Oid {o} ACCEPTED") + msg += "ACCEPTED" else: if o in known_issues: - logging.debug(f"Oid {o} DROPPED (not accepted but known)") + msg += "DROPPED (not accepted but known)" continue else: - logging.debug(f"Oid {o} NEW (not accepted and not known)") - + msg += "NEW (not accepted and not known)" + else: + msg += "NEGLIGIBLE" + logging.debug(msg) if p in report: if s > report[p]['severity']: report[p] = {'severity': s, 'threat': t}