Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Sep 11, 2023
1 parent acd9756 commit 1b3132a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MandrillApiTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ protected function logMessageContent(Email $message, $results = [])
$contentType = $message->getHtmlBody() !== null ? "text/html" : "text";

$logContent = $body;
if (is_object($logContent)) {
$logContent = $logContent->toString();
}

// Append some extra information at the end
$logContent .= '<hr><pre>Debug infos:' . "\n\n";
Expand Down

0 comments on commit 1b3132a

Please sign in to comment.