diff --git a/ai/compute.py b/ai/compute.py index d7b8c19..6a0f8b6 100644 --- a/ai/compute.py +++ b/ai/compute.py @@ -52,7 +52,7 @@ def perform_ocr(screenshot: bytes) -> list[dict]: }) # 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 screenshot_with_circles = Image.open(io.BytesIO(screenshot)) draw = ImageDraw.Draw(screenshot_with_circles)