From 71a145c4f1404975af3c63b363101c59e53de638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sun, 9 Nov 2014 14:11:03 +0100 Subject: [PATCH] [fix] Use stderr instead of stdout in 'console' logging handler --- bin/yunohost | 4 ++-- bin/yunohost-api | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/yunohost b/bin/yunohost index 8f2ab92ae..84f7d5a29 100755 --- a/bin/yunohost +++ b/bin/yunohost @@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO' # Handlers that will be used by loggers # - file: log to the file LOG_DIR/LOG_FILE -# - console: log to stdout +# - console: log to stderr LOGGERS_HANDLERS = ['file'] # Directory and file to be used by logging @@ -93,7 +93,7 @@ def _init_moulinette(): 'console': { 'class': 'logging.StreamHandler', 'formatter': 'simple', - 'stream': 'ext://sys.stdout', + 'stream': 'ext://sys.stderr', }, 'file': { 'class': 'logging.FileHandler', diff --git a/bin/yunohost-api b/bin/yunohost-api index 515cc8361..dda606cfb 100755 --- a/bin/yunohost-api +++ b/bin/yunohost-api @@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO' # Handlers that will be used by loggers # - file: log to the file LOG_DIR/LOG_FILE -# - console: log to stdout +# - console: log to stderr LOGGERS_HANDLERS = ['file'] # Directory and file to be used by logging @@ -93,7 +93,7 @@ def _init_moulinette(): 'console': { 'class': 'logging.StreamHandler', 'formatter': 'simple', - 'stream': 'ext://sys.stdout', + 'stream': 'ext://sys.stderr', }, 'file': { 'class': 'logging.handlers.WatchedFileHandler',