From 612a729a4b6cd8e93602a15916c479c53c1cd2d7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 24 Apr 2024 06:41:59 +0300 Subject: Use app's logger rather than root logger. --- gn2/wqflask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3