Automattic\WooCommerce\Blueprint
Logger::import_step_failed
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() 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' ), ) ); }