fix(logging): request logs no longer show up twice
This commit is contained in:
parent
f501acf839
commit
180fccaf90
@ -35,6 +35,7 @@ def create_app(test_config=None):
|
|||||||
if not app.config['DEBUG']:
|
if not app.config['DEBUG']:
|
||||||
app.logger = logging.getLogger('lumi2')
|
app.logger = logging.getLogger('lumi2')
|
||||||
app.logger.setLevel(logging.INFO)
|
app.logger.setLevel(logging.INFO)
|
||||||
|
app.logger.propagate = False
|
||||||
|
|
||||||
console_handler = logging.StreamHandler()
|
console_handler = logging.StreamHandler()
|
||||||
console_handler.setLevel(logging.INFO)
|
console_handler.setLevel(logging.INFO)
|
||||||
|
Loading…
Reference in New Issue
Block a user