From 95427d430ef7e911f34e56f3728f50436b17a448 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 19 Jan 2023 07:26:22 +0100 Subject: [PATCH] added startup script --- app/main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index b4ee325..e9ed1dd 100644 --- a/app/main.py +++ b/app/main.py @@ -536,7 +536,14 @@ async def leasing_v1_lessor_shutdown(request: Request): @app.on_event('startup') async def app_on_startup(): - logger.info(f'Using timezone: {str(TZ)}. Make sure this is correct and match your clients!') + logger.info(f''' + Using timezone: {str(TZ)}. Make sure this is correct and match your clients! + + Your clients renew their license every {str(Lease.calculate_renewal(LEASE_RENEWAL_PERIOD, LEASE_RENEWAL_DELTA))}. + If the renewal fails, the license is {str(LEASE_RENEWAL_DELTA)} valid. + + Your client-token file (.tok) is valid for {str(CLIENT_TOKEN_EXPIRE_DELTA)}. + ''') if __name__ == '__main__':