From bea63cb866c07cbd01b144b9c5502b3ac7aae4ac Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Tue, 13 Apr 2021 11:26:34 +0800 Subject: [PATCH] fix: unable to apply logging format (#14074) * fix: unable to apply logging format * Update superset/app.py Great! Co-authored-by: Erik Ritter Co-authored-by: Erik Ritter --- superset/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/app.py b/superset/app.py index f0f5dc1510689..cd7bf3657639d 100644 --- a/superset/app.py +++ b/superset/app.py @@ -549,13 +549,14 @@ def init_app(self) -> None: order to fully init the app """ self.pre_init() + # Configuration of logging must be done first to apply the formatter properly + self.configure_logging() self.setup_db() self.configure_celery() self.setup_event_logger() self.setup_bundle_manifest() self.register_blueprints() self.configure_wtf() - self.configure_logging() self.configure_middlewares() self.configure_cache()