From c185bab92206700ebd8ff7c3dcf8537aca803524 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Fri, 31 Jan 2020 19:43:34 +0100 Subject: [PATCH] Fix logging --- securemail/securemail.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/securemail/securemail.php b/securemail/securemail.php index 6833c8850..115ba4729 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -116,8 +116,6 @@ function securemail_settings_post(App &$a, array &$b) */ function securemail_emailer_send_prepare(App &$a, IEmail &$email) { - DI::logger()->debug('start securemail', ['email' => $email]); - if (empty($email->getRecipientUid())) { return; } @@ -126,7 +124,7 @@ function securemail_emailer_send_prepare(App &$a, IEmail &$email) $enable_checked = DI::pConfig()->get($uid, 'securemail', 'enable'); if (!$enable_checked) { - DI::logger()->debug('No check', ['email' => $email]); + DI::logger()->debug('No securemail enabled.'); return; } @@ -154,8 +152,6 @@ function securemail_emailer_send_prepare(App &$a, IEmail &$email) $email = $email->withMessage($armored_encrypted, null); - DI::logger()->debug('End securemail', ['email' => $email]); - } catch (Exception $e) { DI::logger()->warning('Encryption failed.', ['email' => $email, 'exception' => $e]); }