From 1c4bd0e796a7634519d5541e1ae95ef0f14682f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sun, 15 Nov 2015 01:05:08 +0100 Subject: [PATCH] [fix] Add tty in root handlers if debug is set in bin/yunohost --- bin/yunohost | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/yunohost b/bin/yunohost index f0f770760..c886c89bc 100755 --- a/bin/yunohost +++ b/bin/yunohost @@ -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