From 0d9e814d0d2b766b6584f7f3a34c3c1d6889b71f Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 13 Jun 2024 20:18:33 +0200 Subject: [PATCH] show if debug is enabled on app startup --- app/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.py b/app/main.py index 6be05df..ab87bde 100644 --- a/app/main.py +++ b/app/main.py @@ -553,6 +553,8 @@ async def app_on_startup(): Your client-token file (.tok) is valid for {str(CLIENT_TOKEN_EXPIRE_DELTA)}. ''') + logger.info(f'Debug is {"enabled" if DEBUG else "disabled"}.') + if __name__ == '__main__': import uvicorn