Mercurial > wikked
changeset 291:035c7a58e9aa
Don't duplicate logging when running the server in command-line.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 27 Sep 2014 22:47:48 -0700 |
parents | e3c1bde2f597 |
children | 0b0f3486719c |
files | wikked/commands/web.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/commands/web.py Sat Sep 27 22:46:34 2014 -0700 +++ b/wikked/commands/web.py Sat Sep 27 22:47:48 2014 -0700 @@ -64,6 +64,11 @@ # Create/import the app. from wikked.web import app + # Remove Flask's default logging handler. Since the app is under the + # overall Wikked package, logging is handled by the root logger + # already. + app.logger.handlers = [] + # Setup other simpler settings. if ctx.args.dev: app.config['DEV_ASSETS'] = True