fix: logger
This commit is contained in:
parent
ff7c362cfe
commit
e5b3ea8b57
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user