FwLo(@FɌ|ص@@ȴFkb̕jn@@贿Fign*D@F ARG@0FR@@PFm|H@@pFGTwpC@FY(hC@F$U,.k򈊈@еFU(`D@F Gcip@FHīwh@@F!jx@xF;J @FNw@඿FU2t@F1@@tp@0F_BЍ@XFM(W-@@F^|@FLVѾ@طFdkF`@F޴/4q@(FsD@XF !ԡx@F1萈@F0|ؽ>@ȸFn `@F 1Pr@F!7̿Б@`/@2xY`/@8F^;1R-@XFv1 M@@xFT䗑׏x@Ff@ U@F @๿FKݲkh@F>my@XFٲkx@F CД@ȺFi7 ۿ@FXpޭRX@F y _۹@8F|0|`@XFas𰖈@FmT(@F nRk򈗈@໿FY%VQÑ@F>zA)&H@0FrV@`FAiL&í@F71]b@輿FlȦng@@F4wFOs@8Fgw4@pFYsRϠ@FJ-蜈@8F=d);x@F[&X@Fi|L~=@F`|@K@(F;UkZÐGw@PF}+@F3ܼIx@迿FCMFUҀ@PF 1@pFY}@R࢈@Fsg[0@F3ː"n0@FI#إ@F*@@¿FFV@@¿FKSc@h¿FO ^x@¿FpFAৈ@¿FYZH@ÿF䢕ox`@0ÿFB|Ȫ@PÿFvXwO@xÿFL wH@ÿFyF @ÿFudPO@ÿFmvn0K@ĿFieп@@ ĿFYB`@HĿFD%@ĿF×log( $action_id, $message ); } /** * Log action failure. * * @param int $action_id Action ID. * @param Exception $exception Exception. * @param string $context Action execution context. */ public function log_failed_action( $action_id, Exception $exception, $context = '' ) { if ( ! empty( $context ) ) { /* translators: 1: context 2: exception message */ $message = sprintf( __( 'action failed via %1$s: %2$s', 'action-scheduler' ), $context, $exception->getMessage() ); } else { /* translators: %s: exception message */ $message = sprintf( __( 'action failed: %s', 'action-scheduler' ), $exception->getMessage() ); } $this->log( $action_id, $message ); } /** * Log action timeout. * * @param int $action_id Action ID. * @param string $timeout Timeout. */ public function log_timed_out_action( $action_id, $timeout ) { /* translators: %s: amount of time */ $this->log( $action_id, sprintf( __( 'action marked as failed after %s seconds. Unknown error occurred. Check server, PHP and database error logs to diagnose cause.', 'action-scheduler' ), $timeout ) ); } /** * Log unexpected shutdown. * * @param int $action_id Action ID. * @param mixed[] $error Error. */ public function log_unexpected_shutdown( $action_id, $error ) { if ( ! empty( $error ) ) { /* translators: 1: error message 2: filename 3: line */ $this->log( $action_id, sprintf( __( 'unexpected shutdown: PHP Fatal error %1$s in %2$s on line %3$s', 'action-scheduler' ), $error['message'], $error['file'], $error['line'] ) ); } } /** * Log action reset. * * @param int $action_id Action ID. */ public function log_reset_action( $action_id ) { $this->log( $action_id, __( 'action reset', 'action-scheduler' ) ); } /** * Log ignored action. * * @param int $action_id Action ID. * @param string $context Action execution context. */ public function log_ignored_action( $action_id, $context = '' ) { if ( ! empty( $context ) ) { /* translators: %s: context */ $message = sprintf( __( 'action ignored via %s', 'action-scheduler' ), $context ); } else { $message = __( 'action ignored', 'action-scheduler' ); } $this->log( $action_id, $message ); } /** * Log the failure of fetching the action. * * @param string $action_id Action ID. * @param null|Exception $exception The exception which occurred when fetching the action. NULL by default for backward compatibility. */ public function log_failed_fetch_action( $action_id, ?Exception $exception = null ) { if ( ! is_null( $exception ) ) { /* translators: %s: exception message */ $log_message = sprintf( __( 'There was a failure fetching this action: %s', 'action-scheduler' ), $exception->getMessage() ); } else { $log_message = __( 'There was a failure fetching this action', 'action-scheduler' ); } $this->log( $action_id, $log_message ); } /** * Log the failure of scheduling the action's next instance. * * @param int $action_id Action ID. * @param Exception $exception Exception object. */ public function log_failed_schedule_next_instance( $action_id, Exception $exception ) { /* translators: %s: exception message */ $this->log( $action_id, sprintf( __( 'There was a failure scheduling the next instance of this action: %s', 'action-scheduler' ), $exception->getMessage() ) ); } /** * Bulk add cancel action log entries. * * Implemented here for backward compatibility. Should be implemented in parent loggers * for more performant bulk logging. * * @param array $action_ids List of action ID. */ public function bulk_log_cancel_actions( $action_ids ) { if ( empty( $action_ids ) ) { return; } foreach ( $action_ids as $action_id ) { $this->log_canceled_action( $action_id ); } } }