Skip to content

Commit 80c37f6

Browse files
author
abrukhovetskyy
committed
format fixes
1 parent ce89210 commit 80c37f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/auxiliary/PolarProxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,12 @@ def run(self):
200200
self.proc = subprocess.Popen(polarproxy_args, stdout=self.log_file, stderr=self.log_file, shell=False)
201201
except (OSError, subprocess.SubprocessError) as e:
202202
log.info(
203-
"Failed to start PolarProxy (host=%s, port=%s, dump_path=%s, log=%s)",
203+
"Failed to start PolarProxy (host=%s, port=%s, dump_path=%s, log=%s). Error(%s)",
204204
self.host_ip,
205205
self.listen_port,
206206
self.pcap,
207207
self.log_file,
208+
str(e)
208209
)
209210
self.log_file.close()
210211
self.log_file = None

modules/processing/polarproxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run(self):
8484
log.info("Creating PCAP with decrypted TLS streams")
8585
shutil.move(tmp_pcap, self.pcap_path)
8686
else:
87-
log.warning(f"Failed to merge pcaps: {stderr.decode()}")
87+
log.warning("Failed to merge pcaps: %s", stderr.decode())
8888

8989
results = {"pcap_sha256": File(self.pcap_path).get_sha256()}
9090
return results

0 commit comments

Comments
 (0)