aboutsummaryrefslogtreecommitdiff
path: root/api/dynamic_import.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-22 13:52:42 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-22 13:52:42 +0100
commit582d78d60f43846f2beed6a6b9d17c8edf72115c (patch)
treee3316a72b0ade263831bae9ca814b50adb548eed /api/dynamic_import.py
parentc02dc3a493cf66f5c4a6ccd2a1155c3f8c2e37ef (diff)
fix dynamic routing message in log
Diffstat (limited to 'api/dynamic_import.py')
-rw-r--r--api/dynamic_import.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/dynamic_import.py b/api/dynamic_import.py
index f7945f9..eb8f0c2 100644
--- a/api/dynamic_import.py
+++ b/api/dynamic_import.py
@@ -16,5 +16,6 @@ for file in files:
mod = importlib.import_module(file)
if not hasattr(mod, "dynamic_route"): continue
app.register_blueprint(mod.dynamic_route[1], url_prefix=mod.dynamic_route[0])
- log.info(f"dynamically routing {mod.dynamic_route[0]}{mod.dynamic_route[1].import_name}")
+ path = (mod.dynamic_route[0] + "/" + mod.dynamic_route[1].name).replace('//', '/')
+ log.info(f"dynamically routing {path}")