From b792535dd08546f794bfcba666e3cf9d4ab9c1d7 Mon Sep 17 00:00:00 2001 From: Bashy Date: Thu, 4 Jun 2026 19:40:56 +0300 Subject: [PATCH] Add image debug logging to dispatch-social Co-Authored-By: Claude Sonnet 4.6 --- bin/dispatch-social.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/dispatch-social.php b/bin/dispatch-social.php index 8d58804..674604c 100755 --- a/bin/dispatch-social.php +++ b/bin/dispatch-social.php @@ -213,7 +213,10 @@ foreach ($targets as $t) { $with_image = (int)$t['include_image'] === 1 && $t['image_path']; $image_path = $with_image ? ROOT . '/data/social-uploads/' . basename($t['image_path']) : null; - log_msg("post=$post_id target=$target_id platform=$platform key=$target_key" . ($image_path ? ' +image' : '')); + log_msg("post=$post_id target=$target_id platform=$platform key=$target_key" + . ($image_path ? ' +image' : '') + . " [include_image={$t['include_image']} db_path=" . ($t['image_path'] ?: 'NULL') . ']' + . ($image_path ? ' file_exists=' . (file_exists($image_path) ? 'yes' : 'NO') : '')); if (!isset($configs[$pid])) $configs[$pid] = read_config($base); $config = &$configs[$pid];