Skip to content

Commit

Permalink
improved log levels usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka5W committed Sep 27, 2024
1 parent 1533c26 commit 9928d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eink_create_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main(l: Logger, target, size, dither, rotation, gen_f, gen_a):
rgb_image.save(target['file'], 'JPEG', quality="maximum")

if not ('ap' in target or 'tag' in target):
l.info('Image created successfully')
l.log('Image created successfully')
return 0

l.debug('Prepare the HTTP POST request')
Expand All @@ -133,7 +133,7 @@ def main(l: Logger, target, size, dither, rotation, gen_f, gen_a):

l.debug('Check the response status')
if response.status_code == 200:
l.info("Image uploaded successfully!")
l.log("Image uploaded successfully!")
return 0
else:
l.error("Failed to upload the image.")
Expand Down

0 comments on commit 9928d54

Please sign in to comment.