Skip to content

Commit

Permalink
feat: add debug logging to sendmail binary finder
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards committed Jul 14, 2024
1 parent 2fcbf11 commit cbe57b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}

0 comments on commit cbe57b5

Please sign in to comment.