Browse Source

Disable logger propagation by default

pull/1993/head
Armin Ronacher 8 years ago
parent
commit
e00e2c22aa
  1. 1
      CHANGES
  2. 4
      flask/logging.py

1
CHANGES

@ -11,6 +11,7 @@ Version 0.12
See pull request ``#1849``.
- Make ``flask.safe_join`` able to join multiple paths like ``os.path.join``
(pull request ``#1730``).
- Disable logger propagation by default for the app logger.
Version 0.11.2
--------------

4
flask/logging.py

@ -87,4 +87,8 @@ def create_logger(app):
logger.__class__ = DebugLogger
logger.addHandler(debug_handler)
logger.addHandler(prod_handler)
# Disable propagation by default
logger.propagate = False
return logger

Loading…
Cancel
Save