From ebb520dd4a80b513d1eb6fc6ce90e6b46f905100 Mon Sep 17 00:00:00 2001
From: retoor <retoor@molodetz.nl>
Date: Tue, 18 Feb 2025 12:38:44 +0100
Subject: [PATCH] Updated asyncio debugging.

---
 compose.yml     | 4 ++--
 src/snek/app.py | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/compose.yml b/compose.yml
index a1079dd..0090fff 100644
--- a/compose.yml
+++ b/compose.yml
@@ -7,8 +7,8 @@ services:
     volumes:
       - ./:/code
     environment:
-     - PYTHONDONTWRITEBYTECODE="1"
-     - PYTHONUNBUFFERED="1"
+     - PYTHONDONTWRITEBYTECODE=1
+     - PYTHONUNBUFFERED=1
     #entrypoint: ["gunicorn", "-w", "1", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"]
     entrypoint: ["python","-m","snek.app"]
   snecssh:
diff --git a/src/snek/app.py b/src/snek/app.py
index 4ce71ba..ab337ba 100644
--- a/src/snek/app.py
+++ b/src/snek/app.py
@@ -1,7 +1,9 @@
 import pathlib
-
 import asyncio
 
+import logging 
+logging.basicConfig(level=logging.DEBUG)
+
 from aiohttp import web
 from aiohttp_session import (
     get_session as session_get,