Change logging system to make it easier to get results from scheduled

task
This commit is contained in:
Kat Inskip 2023-09-08 20:28:09 -07:00
parent fa08d92cf7
commit f3ee0e19ff
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 26 additions and 15 deletions

View file

@ -12,6 +12,6 @@ def combine_to_viewport(displays: list, files: list):
resized_image = open_image.resize((displays[i].width, displays[i].height))
combined.paste(resized_image, (displays[i].x, displays[i].y))
file = tempfile.NamedTemporaryFile(delete=False)
logging.info(f"Created temporary file {file.name} to save combined viewport image into")
logging.debug(f"Created temporary file {file.name} to save combined viewport image into")
combined.save(file.name, format="PNG")
return file