[fix] Add tty in root handlers if debug is set in bin/yunohost

This commit is contained in:
Jérôme Lebleu 2015-11-15 01:05:08 +01:00
parent e6cfab1f6a
commit 1c4bd0e796

View file

@ -94,7 +94,10 @@ def _init_moulinette(debug=False, verbose=False, quiet=False):
handlers.remove('tty')
elif verbose and 'tty' not in handlers:
handlers.append('tty')
root_handlers = handlers - set(['tty'])
root_handlers = handlers
if not debug:
root_handlers.remove('tty')
# Define loggers level
level = LOGGERS_LEVEL