From d335e2e164ddf58fe1b4c546e1c404def2b734f6 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 27 Oct 2024 15:16:30 +0000 Subject: [PATCH 1/2] fixed logging to support Monolog2 --- CHANGELOG.md | 6 ++++++ classes/Email.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79c3b34..eaabc06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.1.1 +## mm/dd/2024 + +1. [](#improved) + * Updated logging methods to support Monolog2+ + # v4.1.0 ## 04/09/2024 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; From 1888ff93ca4fc159d39be5e60c75de329ff12648 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 28 Oct 2024 11:09:37 +0000 Subject: [PATCH 2/2] prepare for release --- CHANGELOG.md | 2 +- blueprints.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaabc06..e117d3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # v4.1.1 -## mm/dd/2024 +## 10/28/2024 1. [](#improved) * Updated logging methods to support Monolog2+ 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