Skip to content

Commit a1eedc2

Browse files
committed
Remove extra IP info from the evidence logged to alerts.log if the info is an empty str
1 parent f337134 commit a1eedc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

slips_files/core/text_formatters/evidence_formatter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def get_printable_attacker_and_victim_info(
165165
cached_info = self.db.get_ip_identification(entity.value) or {}
166166
if cached_info:
167167
info = utils.get_ip_identification_as_str(cached_info)
168-
results.append(f"IP {entity.value}: {info}")
168+
if info:
169+
results.append(f"IP {entity.value}: {info}")
169170

170171
return ", ".join(results)
171172

0 commit comments

Comments
 (0)