mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Fixes logging
This commit is contained in:
@@ -123,7 +123,7 @@ class Cryptographer:
|
||||
nonce = bytearray(12)
|
||||
|
||||
logger.info(
|
||||
"Decrypting Blob",
|
||||
"Decrypting blob",
|
||||
sk=hexlify(sk).decode(),
|
||||
nonce=hexlify(nonce).decode(),
|
||||
encrypted_blob=encrypted_blob.data,
|
||||
@@ -142,6 +142,7 @@ class Cryptographer:
|
||||
|
||||
except InvalidTag:
|
||||
blob = None
|
||||
logger.error("Can't decrypt blob with the provided key")
|
||||
|
||||
return blob
|
||||
|
||||
|
||||
Reference in New Issue
Block a user