]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix logging
authornupplaPhil <admin@philipp.info>
Fri, 31 Jan 2020 18:43:34 +0000 (19:43 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 31 Jan 2020 18:43:34 +0000 (19:43 +0100)
securemail/securemail.php

index 6833c88507d42daa9069419f81eb1b37811994a7..115ba47290e2cb2f6d7ed948edb726b33220ce8b 100644 (file)
@@ -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]);
        }