From cbe57b556b2e2ba8aab6997c9138e2d81b988c97 Mon Sep 17 00:00:00 2001 From: Josh Richards Date: Sun, 14 Jul 2024 07:49:32 -0400 Subject: [PATCH] feat: add debug logging to sendmail binary finder Signed-off-by: Josh Richards --- lib/private/Mail/Mailer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index a507f5ed26cfb..aff6bd86b55f6 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -302,6 +302,7 @@ protected function getSendMailInstance(): SendmailTransport { if ($sendmail === false) { // fallback (though not sure what good it'll do) $sendmail = '/usr/sbin/sendmail'; + $this->logger->debug('sendmail binary search failed, using fallback ' . $sendmail, ['app' => 'core']); } $binaryPath = $sendmail; break; @@ -312,6 +313,7 @@ protected function getSendMailInstance(): SendmailTransport { default => ' -bs', }; + $this->logger->debug('Using sendmail binary: ' . $binaryPath, ['app' => 'core']); return new SendmailTransport($binaryPath . $binaryParam, null, $this->logger); } }