From adb7dd99c295a28726c8d818fba54c7b3f958ecc Mon Sep 17 00:00:00 2001 From: David Lord Date: Sun, 7 Apr 2024 12:03:19 -0700 Subject: [PATCH] don't access app.logger when configuring app.logger --- docs/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/logging.rst b/docs/logging.rst index 0912b7a1d5..3958824233 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -159,7 +159,7 @@ Depending on your project, it may be more useful to configure each logger you care about separately, instead of configuring only the root logger. :: for logger in ( - app.logger, + logging.getLogger(app.name), logging.getLogger('sqlalchemy'), logging.getLogger('other_package'), ):