From b14958a89d9628221e40ff4581dc00aa5fe83bbc Mon Sep 17 00:00:00 2001 From: joergmschulz Date: Fri, 11 Nov 2022 22:08:56 +0100 Subject: [PATCH] call correct Log class with 2 params instead of 1 see https://github.com/the-djmaze/snappymail/issues/657 --- snappymail/v/0.0.0/app/libraries/snappymail/crypt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php b/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php index 44857b46e..ea99eb4f7 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php @@ -99,14 +99,14 @@ abstract class Crypt $nonce = \random_bytes(\SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES); return ['sodium', $nonce, static::SodiumEncrypt($data, $nonce, $key)]; } catch (\Throwable $e) { - Log::error($e->getMessage()); + \SnappyMail\Log::error('Crypt', $e->getMessage()); } try { $iv = \random_bytes(\openssl_cipher_iv_length(static::$cipher)); return ['openssl', $iv, static::OpenSSLEncrypt($data, $iv, $key)]; } catch (\Throwable $e) { - Log::error($e->getMessage()); + \SnappyMail\Log::error('Crypt', $e->getMessage()); } $salt = \random_bytes(16);