From 932d4401d8e344e028c30d7b248c2b190c91ef39 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 2 Mar 2022 06:42:06 -0500 Subject: [PATCH] Island: Remove redundant file name in commit hash log message --- monkey/monkey_island/cc/resources/monkey_download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/monkey_download.py b/monkey/monkey_island/cc/resources/monkey_download.py index 644cea758..99943aedb 100644 --- a/monkey/monkey_island/cc/resources/monkey_download.py +++ b/monkey/monkey_island/cc/resources/monkey_download.py @@ -42,8 +42,8 @@ class MonkeyDownload(flask_restful.Resource): if filepath.is_file(): with open(filepath, "rb") as monkey_exec_file: file_contents = monkey_exec_file.read() - file_sha256_hash = filename, hashlib.sha256(file_contents).hexdigest() - logger.debug(f"{filename} hash:\nSHA-256 {file_sha256_hash}") + file_sha256_hash = hashlib.sha256(file_contents).hexdigest() + logger.debug(f"{filename} SHA-256 hash: {file_sha256_hash}") else: logger.debug(f"No monkey executable for {filepath}")