From ac4613e7f3789b418dd26e66552a398cf23a6a3f Mon Sep 17 00:00:00 2001 From: bashrc Date: Thu, 7 May 2026 13:44:31 +0100 Subject: [PATCH] Image upload debug --- outbox.py | 3 +++ scripts/images | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/outbox.py b/outbox.py index 56d14e062..9934d791a 100644 --- a/outbox.py +++ b/outbox.py @@ -502,6 +502,9 @@ def post_message_to_outbox(session, translate: {}, create_media_dirs(base_dir, mpath) media_filename = base_dir + '/' + media_path # move the uploaded image to its new path + if debug: + print('DEBUG: rename image upload ' + + upload_media_filename + ' -> ' + media_filename) move_file(upload_media_filename, media_filename, 'EX: post_message_to_outbox unable to rename ' + upload_media_filename + ' -> ' + media_filename) diff --git a/scripts/images b/scripts/images index fe8930fed..cc07a1cc9 100755 --- a/scripts/images +++ b/scripts/images @@ -1,5 +1,5 @@ #!/bin/bash -journalctl -u epicyon | grep 'image binary\|favicon is not an image\|image size before\|watermark failed\|image metadata removal\|media saved to\|failed to restore backup image\|failed to rename image\|media could not be saved to\|failed to delete backup image' > .image.txt +journalctl -u epicyon | grep 'image binary\|favicon is not an image\|image size before\|watermark failed\|image metadata removal\|media saved to\|failed to restore backup image\|failed to rename image\|media could not be saved to\|failed to delete backup image\|post_message_to_outbox unable to rename\|rename image upload' > .image.txt if [ ! -f .image.txt ]; then echo 'No image warnings' else