fix: logger

This commit is contained in:
Showdown76 2025-05-19 20:30:01 +02:00
parent ff7c362cfe
commit e5b3ea8b57

View File

@ -52,7 +52,7 @@ def perform_ocr(screenshot: bytes) -> list[dict]:
}) })
# check if debug is enabled # check if debug is enabled
if logging.getLogger().isEnabledFor(logging.DEBUG): if logger.isEnabledFor(logging.DEBUG):
# take screenshot + put blue circle with x, y on screenshot for each component # take screenshot + put blue circle with x, y on screenshot for each component
screenshot_with_circles = Image.open(io.BytesIO(screenshot)) screenshot_with_circles = Image.open(io.BytesIO(screenshot))
draw = ImageDraw.Draw(screenshot_with_circles) draw = ImageDraw.Draw(screenshot_with_circles)