add debug logs

This commit is contained in:
2026-05-02 20:50:59 -04:00
parent b3c3db17e2
commit ee24320cda
+4
View File
@@ -41,6 +41,8 @@ def load_logo(league, abbr):
return logo_cache[key] return logo_cache[key]
path = os.path.join(LOGO_DIR, f"{key}.png") path = os.path.join(LOGO_DIR, f"{key}.png")
print(f"Looking for logo at: {path}, exists: {os.path.exists(path)}")
if not os.path.exists(path): if not os.path.exists(path):
logo_cache[key] = None logo_cache[key] = None
return None return None
@@ -56,7 +58,9 @@ def load_logo(league, abbr):
def draw_logo(canvas, img, x, y): def draw_logo(canvas, img, x, y):
if img is None: if img is None:
print("Logo is None!")
return return
print(f"Drawing logo {img.size} at {x},{y}")
for px in range(img.width): for px in range(img.width):
for py in range(img.height): for py in range(img.height):
r, g, b = img.getpixel((px, py)) r, g, b = img.getpixel((px, py))