From 555cd8594b4bd6b82a4c18a230a660f400b0a294 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Wed, 24 Jun 2020 22:46:27 +0200 Subject: [PATCH] Append exception message to the log --- modules/cron/lib/Controller/Cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cron/lib/Controller/Cron.php b/modules/cron/lib/Controller/Cron.php index 57af87a16..0e6dd8489 100644 --- a/modules/cron/lib/Controller/Cron.php +++ b/modules/cron/lib/Controller/Cron.php @@ -133,7 +133,7 @@ class Cron try { $mail->send(); } catch (\PHPMailer\PHPMailer\Exception $e) { - Logger::warning("Unable to send cron report"); + Logger::warning("Unable to send cron report; " . $e->getMessage()); } } -- GitLab