mirror of https://github.com/pallets/flask.git
don't access app.logger when configuring app.logger
This commit is contained in:
parent
b739390955
commit
adb7dd99c2
|
@ -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. ::
|
care about separately, instead of configuring only the root logger. ::
|
||||||
|
|
||||||
for logger in (
|
for logger in (
|
||||||
app.logger,
|
logging.getLogger(app.name),
|
||||||
logging.getLogger('sqlalchemy'),
|
logging.getLogger('sqlalchemy'),
|
||||||
logging.getLogger('other_package'),
|
logging.getLogger('other_package'),
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in New Issue