mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Add tty in root handlers if debug is set in bin/yunohost
This commit is contained in:
parent
e6cfab1f6a
commit
1c4bd0e796
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue