From 373fab6e90d1280b723dcfe0f157a4a3a5d3092c Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Thu, 28 Jul 2022 19:01:49 +0200 Subject: [PATCH] fix for sanic 22.6 --- api/obs/api/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/obs/api/app.py b/api/obs/api/app.py index 752e2ca..d70dd83 100644 --- a/api/obs/api/app.py +++ b/api/obs/api/app.py @@ -26,7 +26,11 @@ from sqlalchemy.util import asyncio log = logging.getLogger(__name__) -app = Sanic("OpenBikeSensor Portal API", load_env="OBS_", log_config={}) +app = Sanic( + "openbikesensor-api", + env_prefix="OBS_", + log_config={}, +) if isfile("./config.py"): app.update_config("./config.py")