diff --git a/CHANGELOG.md b/CHANGELOG.md index 79c3b34..e117d3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.1.1 +## 10/28/2024 + +1. [](#improved) + * Updated logging methods to support Monolog2+ + # v4.1.0 ## 04/09/2024 diff --git a/blueprints.yaml b/blueprints.yaml index 3546811..d8e4f97 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Email slug: email type: plugin -version: 4.1.0 +version: 4.1.1 testing: false description: Enables the emailing system for Grav icon: envelope diff --git a/classes/Email.php b/classes/Email.php index bf116fd..213ef2c 100644 --- a/classes/Email.php +++ b/classes/Email.php @@ -106,7 +106,7 @@ public function send(Message $message, Envelope $envelope = null): int $log_msg = "Email sent to %s at %s -> %s\n%s"; $to = $this->jsonifyRecipients($message->getEmail()->getTo()); $message = sprintf($log_msg, $to, date('Y-m-d H:i:s'), $this->message, $this->debug); - $this->log->addInfo($message); + $this->log->info($message); } return $status;