From 5974ff7b8ff1661a7d9e8a31d93e9b747f5c0256 Mon Sep 17 00:00:00 2001 From: "ryan.jehan" Date: Fri, 10 Jun 2022 17:18:20 +0930 Subject: [PATCH 1/2] update addRecord method to match core --- Logger/Logger.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Logger/Logger.php b/Logger/Logger.php index 355f79d..d88362e 100644 --- a/Logger/Logger.php +++ b/Logger/Logger.php @@ -11,6 +11,7 @@ use Bazaarvoice\Connector\Api\ConfigProviderInterface; use Exception; use Magento\Framework\App\State; +use Monolog\DateTimeImmutable; /** * Class Logger @@ -71,10 +72,11 @@ public function debug($message, array $context = []): void * @param int $level * @param string $message * @param array $context + * @param DateTimeImmutable $datetime * * @return bool */ - public function addRecord($level, $message, array $context = []): bool + public function addRecord($level, $message, array $context = [], DateTimeImmutable $datetime = null): bool { if (is_array($message)) { $message = print_r($message, $return = true); @@ -84,6 +86,6 @@ public function addRecord($level, $message, array $context = []): bool print_r($message."\n"); } - return parent::addRecord($level, $message, $context); + return parent::addRecord($level, $message, $context, $datetime); } } From 462e1f485236fae7f345bf03473c04f471c92772 Mon Sep 17 00:00:00 2001 From: "ryan.jehan" Date: Wed, 15 Jun 2022 10:52:08 +0930 Subject: [PATCH 2/2] updated the version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 38d26d3..fe7f2e7 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": [ "MIT" ], - "version": "9.1.4", + "version": "9.1.5", "autoload": { "files": [ "registration.php"