Automattic\WooCommerce\Blueprint

Logger::import_step_failedpublicWC 1.0

Log an import step failure.

Method of the class: Logger{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Logger = new Logger();
$Logger->import_step_failed( $step_name, $result );
$step_name(string) (required)
The name of the step that failed.
$result(StepProcessorResult) (required)
The result of the import.

Logger::import_step_failed() code WC 9.9.5

public function import_step_failed( string $step_name, StepProcessorResult $result ) {
	$this->log(
		sprintf( 'Import "%s" step failed', $step_name ),
		\WC_Log_Levels::ERROR,
		array(
			'messages' => $result->get_messages( 'error' ),
		)
	);
}