Skip to content

Commit ea005c7

Browse files
committed
mark runtime exception as retryable.
1 parent aa5d10e commit ea005c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inc/media_offload.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,7 @@ public function generate_image_meta( $meta, $attachment_id ) {
14581458
}
14591459

14601460
update_post_meta( $attachment_id, self::META_KEYS['offload_error'], 'true' );
1461-
1462-
self::$instance->logger->add_log( Optml_Logger::LOG_TYPE_OFFLOAD, 'Image ID: ' . $attachment_id . ' has an issue.' . $exception->getMessage() );
1461+
self::mark_retryable_error( $attachment_id, 'Image ID: ' . $attachment_id . ' has an unknown error from upload api:' . $exception->getMessage() );
14631462

14641463
return $meta;
14651464
}

0 commit comments

Comments
 (0)