Status::rotate_logs()
Summary
Overwrite the previous log with the current log and empty the current log
Return
(void)
Source
File: src/BigCommerce/Import/Runner/Status.php
$log = $this->current_log(); /** * Rotate out the current log into the previous log slot * * @param array $log The current log */ do_action( 'bigcommerce/import/logs/rotate', $log ); $this->update_option( self::PREVIOUS_LOG, $log, false ); $this->update_option( self::CURRENT_LOG, [], false ); /** * Logs have been rotated * * @param array $log The previous log */ do_action( 'bigcommerce/import/logs/rotated', $log ); }