Updated asyncio debugging.
This commit is contained in:
		
							parent
							
								
									3ccbe8be5c
								
							
						
					
					
						commit
						ebb520dd4a
					
				| @ -7,8 +7,8 @@ services: | |||||||
|     volumes: |     volumes: | ||||||
|       - ./:/code |       - ./:/code | ||||||
|     environment: |     environment: | ||||||
|      - PYTHONDONTWRITEBYTECODE="1" |      - PYTHONDONTWRITEBYTECODE=1 | ||||||
|      - PYTHONUNBUFFERED="1" |      - PYTHONUNBUFFERED=1 | ||||||
|     #entrypoint: ["gunicorn", "-w", "1", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"] |     #entrypoint: ["gunicorn", "-w", "1", "-k", "aiohttp.worker.GunicornWebWorker", "snek.gunicorn:app","--bind","0.0.0.0:8081"] | ||||||
|     entrypoint: ["python","-m","snek.app"] |     entrypoint: ["python","-m","snek.app"] | ||||||
|   snecssh: |   snecssh: | ||||||
|  | |||||||
| @ -1,7 +1,9 @@ | |||||||
| import pathlib | import pathlib | ||||||
| 
 |  | ||||||
| import asyncio | import asyncio | ||||||
| 
 | 
 | ||||||
|  | import logging  | ||||||
|  | logging.basicConfig(level=logging.DEBUG) | ||||||
|  | 
 | ||||||
| from aiohttp import web | from aiohttp import web | ||||||
| from aiohttp_session import ( | from aiohttp_session import ( | ||||||
|     get_session as session_get, |     get_session as session_get, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user