Skip to content

Commit adb7dd9

Browse files
committed
don't access app.logger when configuring app.logger
1 parent b739390 commit adb7dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Depending on your project, it may be more useful to configure each logger you
159159
care about separately, instead of configuring only the root logger. ::
160160

161161
for logger in (
162-
app.logger,
162+
logging.getLogger(app.name),
163163
logging.getLogger('sqlalchemy'),
164164
logging.getLogger('other_package'),
165165
):

0 commit comments

Comments
 (0)