From 1b3132a1337a175e6078c09717a3964c2dc45c38 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 11 Sep 2023 15:45:12 +0200 Subject: [PATCH] fix logging --- src/MandrillApiTransport.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MandrillApiTransport.php b/src/MandrillApiTransport.php index 3f487bb..6ab4170 100644 --- a/src/MandrillApiTransport.php +++ b/src/MandrillApiTransport.php @@ -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 .= '
Debug infos:' . "\n\n";