Fixes cli console log levels so Cryptographer's sensitive info is only logged in disk

This commit is contained in:
Sergi Delgado Segura
2020-02-14 12:42:47 +01:00
parent ead74199e5
commit de2036b19b
3 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ class Cryptographer:
sk = sha256(unhexlify(secret)).digest()
nonce = bytearray(12)
logger.info("Encrypting blob", sk=hexlify(sk).decode(), nonce=hexlify(nonce).decode(), blob=blob.data)
logger.debug("Encrypting blob", sk=hexlify(sk).decode(), nonce=hexlify(nonce).decode(), blob=blob.data)
# Encrypt the data
cipher = ChaCha20Poly1305(sk)