mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-14 02:18:50 +00:00
show if debug is enabled on app startup
This commit is contained in:
parent
5438317fb7
commit
0d9e814d0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user