From 1635976edf4e7b65ac60da7682f44a2b4c4c2c34 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 3 Feb 2024 22:43:04 +0300 Subject: [PATCH] debug-4 --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 5abe0b9..1a9703b 100644 --- a/main.py +++ b/main.py @@ -21,6 +21,7 @@ logger.setLevel(logging.DEBUG) async def start_up(): + logger.info('[main] starting...') await redis.connect() task = asyncio.create_task(notifications_worker()) @@ -31,6 +32,7 @@ async def start_up(): with open(DEV_SERVER_PID_FILE_NAME, 'w', encoding='utf-8') as f: f.write(str(os.getpid())) else: + logger.info('[main] production mode') try: import sentry_sdk