Commit 65e59003 authored by Michael Iseard's avatar Michael Iseard
Browse files

Fix logging issues due to database field length being too small

parent 393c2a5e
......@@ -284,8 +284,8 @@ class ActivatorService {
id MEDIUMINT(9) NOT NULL AUTO_INCREMENT,
date DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL,
level VARCHAR(255) NOT NULL,
message VARCHAR(255) NOT NULL,
context VARCHAR(255),
message TEXT NOT NULL,
context TEXT,
PRIMARY KEY (id)
) $charset_collate";
......
......@@ -316,15 +316,11 @@ class MollieVendor implements VendorInterface {
public function create_payment( array $payment_array ): ?Payment {
try {
return $this->api_client->payments->create( $payment_array );
} catch ( ApiException $e ) {
$this->logger->critical( $e->getMessage(), [ 'payment' => $payment_array ] );
$this->logger->critical( $e->getMessage() );
return null;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment