Change logged error to warning

[MAILPOET-4639]
This commit is contained in:
Jan Lysý
2023-01-05 14:19:24 +01:00
committed by Aschepikov
parent ada346f4ef
commit 3df00548ab

View File

@ -283,7 +283,7 @@ class API {
// logging to the php log
error_log((string)$e); // phpcs:ignore Squiz.PHP.DiscouragedFunctions
// logging to the MailPoet table
$this->loggerFactory->getLogger(LoggerFactory::TOPIC_API)->error($e->getMessage(), [
$this->loggerFactory->getLogger(LoggerFactory::TOPIC_API)->warning($e->getMessage(), [
'requestMethod' => $this->requestMethod,
'requestData' => $this->requestData,
'requestEndpoint' => $this->requestEndpoint,