impr: log Andreal executable output

This commit is contained in:
283375 2023-10-23 10:16:19 +08:00
parent 381f27db87
commit 90e66a43fe
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -31,6 +31,9 @@ class AndrealExecuteRunnable(QRunnable):
encoding="utf-8",
)
result = subp.stdout
if subp.returncode != 0:
logger.error("AndrealImageGenerator Error: ")
logger.error(result)
b64Result = [s for s in result.split("\n") if s]
imageBytes = base64.b64decode(
re.sub(r"data:image/.*;base64,", "", b64Result[-1])