mirror of https://gitlab.com/bashrc2/epicyon
Image upload debug
parent
75bb489f40
commit
ac4613e7f3
|
|
@ -502,6 +502,9 @@ def post_message_to_outbox(session, translate: {},
|
||||||
create_media_dirs(base_dir, mpath)
|
create_media_dirs(base_dir, mpath)
|
||||||
media_filename = base_dir + '/' + media_path
|
media_filename = base_dir + '/' + media_path
|
||||||
# move the uploaded image to its new 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,
|
move_file(upload_media_filename, media_filename,
|
||||||
'EX: post_message_to_outbox unable to rename ' +
|
'EX: post_message_to_outbox unable to rename ' +
|
||||||
upload_media_filename + ' -> ' + media_filename)
|
upload_media_filename + ' -> ' + media_filename)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [ ! -f .image.txt ]; then
|
||||||
echo 'No image warnings'
|
echo 'No image warnings'
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue