Do not call add_note() (which itself calls the add_note() method of the underlying order) in case of tracking communication errors as these errors are very repetitive and should be debug-only logs.

This commit is contained in:
vendidero 2022-11-29 11:45:41 +01:00
parent d855d7fd87
commit 65b5b829fe

View file

@ -176,7 +176,6 @@ class CompatModule implements ModuleInterface {
! $tracking_information ? $endpoint->add_tracking_information( $tracking_data, $wc_order->get_id() ) : $endpoint->update_tracking_information( $tracking_data, $wc_order->get_id() );
} catch ( Exception $exception ) {
$logger->error( "Couldn't sync tracking information: " . $exception->getMessage() );
$shipment->add_note( "Couldn't sync tracking information: " . $exception->getMessage() );
}
}
);