aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-24 06:41:59 +0300
committerFrederick Muriuki Muriithi2024-04-24 06:41:59 +0300
commit612a729a4b6cd8e93602a15916c479c53c1cd2d7 (patch)
treef00c3f43b8b16ed0534787dff9316eaf5821e174 /gn2/wqflask
parent2af5b44537711c1f9d6bde9807f0eda515ffe30e (diff)
downloadgenenetwork2-612a729a4b6cd8e93602a15916c479c53c1cd2d7.tar.gz
Use app's logger rather than root logger.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/__init__.py b/gn2/wqflask/__init__.py
index b42b45f1..4dee4fea 100644
--- a/gn2/wqflask/__init__.py
+++ b/gn2/wqflask/__init__.py
@@ -60,7 +60,7 @@ def parse_ssl_key(app: Flask, keyconfig: str):
"""Parse key file paths into objects"""
keypath = app.config.get(keyconfig, "").strip()
if not bool(keypath):
- logging.error(f"Expected configuration '{keyconfig}'")
+ app.logger.error("Expected configuration '%s'", keyconfig)
return
with open(keypath) as _sslkey: