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',