From 82bc740363e8d9f3c7a070444b0d1fae45f837c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Sep 2020 10:08:54 +0300 Subject: Logger::log - allow specifying errno bump severity of PDO exception log messages to E_USER_WARNING --- classes/mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/mailer.php') diff --git a/classes/mailer.php b/classes/mailer.php index 2919eec79..16be16523 100644 --- a/classes/mailer.php +++ b/classes/mailer.php @@ -20,7 +20,7 @@ class Mailer { $to_combined = $to_name ? "$to_name <$to_address>" : $to_address; if (defined('_LOG_SENT_MAIL') && _LOG_SENT_MAIL) - Logger::get()->log("Sending mail from $from_combined to $to_combined [$subject]: $message"); + Logger::get()->log(E_USER_NOTICE, "Sending mail from $from_combined to $to_combined [$subject]: $message"); // HOOK_SEND_MAIL plugin instructions: // 1. return 1 or true if mail is handled -- cgit v1.2.3-54-g00ecf