diff --git a/Logger/Logger.php b/Logger/Logger.php index 132681d..f8d8b54 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); } } \ No newline at end of file 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"