diff --git a/mailpoet/lib/API/JSON/API.php b/mailpoet/lib/API/JSON/API.php index 9af9044542..4d798af3ee 100644 --- a/mailpoet/lib/API/JSON/API.php +++ b/mailpoet/lib/API/JSON/API.php @@ -280,6 +280,9 @@ class API { } private function logError(Throwable $e): void { + // 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(), [ 'requestMethod' => $this->requestMethod, 'requestData' => $this->requestData,