Skip to content

Commit 009cf0f

Browse files
committed
Enhance error logging in media offload process to include exception messages
1 parent f5904c4 commit 009cf0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/media_offload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ public function generate_image_meta( $meta, $attachment_id ) {
14591459

14601460
update_post_meta( $attachment_id, self::META_KEYS['offload_error'], 'true' );
14611461

1462-
self::$instance->logger->add_log( Optml_Logger::LOG_TYPE_OFFLOAD, 'Image ID: ' . $attachment_id . ' has an issue.' );
1462+
self::$instance->logger->add_log( Optml_Logger::LOG_TYPE_OFFLOAD, 'Image ID: ' . $attachment_id . ' has an issue.' . $exception->getMessage() );
14631463

14641464
return $meta;
14651465
}

0 commit comments

Comments
 (0)