Updated asyncio debugging.

This commit is contained in:
retoor 2025-02-18 12:38:44 +01:00
parent 3ccbe8be5c
commit ebb520dd4a
2 changed files with 5 additions and 3 deletions

View File

@ -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:

View File

@ -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,