Add image debug logging to dispatch-social
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4767fe0109
commit
b792535dd0
1 changed files with 4 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue