Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::log_inbox_note_error │ private │ WC 1.0

Log an inbox note failure without failing the submission.

Method of the class: OrderWithdrawalFormProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->log_inbox_note_error( $e, $order_id ): void;
$e(Throwable) (required)
Inbox note error.
$order_id(int) (required)
Order ID.

OrderWithdrawalFormProcessor::log_inbox_note_error() code WC 11.1.2

private function log_inbox_note_error( Throwable $e, int $order_id ): void {
	wc_get_logger()->warning(
		sprintf( 'Order withdrawal inbox note could not be processed for order %1$d. Error: %2$s', $order_id, $e->getMessage() ),
		array( 'source' => self::LOGGER_SOURCE )
	);
}