forked from p15670423/monkey
Island: Remove redundant file name in commit hash log message
This commit is contained in:
parent
279aed36af
commit
932d4401d8
|
@ -42,8 +42,8 @@ class MonkeyDownload(flask_restful.Resource):
|
||||||
if filepath.is_file():
|
if filepath.is_file():
|
||||||
with open(filepath, "rb") as monkey_exec_file:
|
with open(filepath, "rb") as monkey_exec_file:
|
||||||
file_contents = monkey_exec_file.read()
|
file_contents = monkey_exec_file.read()
|
||||||
file_sha256_hash = filename, hashlib.sha256(file_contents).hexdigest()
|
file_sha256_hash = hashlib.sha256(file_contents).hexdigest()
|
||||||
logger.debug(f"{filename} hash:\nSHA-256 {file_sha256_hash}")
|
logger.debug(f"{filename} SHA-256 hash: {file_sha256_hash}")
|
||||||
else:
|
else:
|
||||||
logger.debug(f"No monkey executable for {filepath}")
|
logger.debug(f"No monkey executable for {filepath}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue