mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Use stderr instead of stdout in 'console' logging handler
This commit is contained in:
parent
a9975edaf7
commit
71a145c4f1
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO'
|
||||||
|
|
||||||
# Handlers that will be used by loggers
|
# Handlers that will be used by loggers
|
||||||
# - file: log to the file LOG_DIR/LOG_FILE
|
# - file: log to the file LOG_DIR/LOG_FILE
|
||||||
# - console: log to stdout
|
# - console: log to stderr
|
||||||
LOGGERS_HANDLERS = ['file']
|
LOGGERS_HANDLERS = ['file']
|
||||||
|
|
||||||
# Directory and file to be used by logging
|
# Directory and file to be used by logging
|
||||||
|
@ -93,7 +93,7 @@ def _init_moulinette():
|
||||||
'console': {
|
'console': {
|
||||||
'class': 'logging.StreamHandler',
|
'class': 'logging.StreamHandler',
|
||||||
'formatter': 'simple',
|
'formatter': 'simple',
|
||||||
'stream': 'ext://sys.stdout',
|
'stream': 'ext://sys.stderr',
|
||||||
},
|
},
|
||||||
'file': {
|
'file': {
|
||||||
'class': 'logging.FileHandler',
|
'class': 'logging.FileHandler',
|
||||||
|
|
|
@ -18,7 +18,7 @@ LOGGERS_LEVEL = 'INFO'
|
||||||
|
|
||||||
# Handlers that will be used by loggers
|
# Handlers that will be used by loggers
|
||||||
# - file: log to the file LOG_DIR/LOG_FILE
|
# - file: log to the file LOG_DIR/LOG_FILE
|
||||||
# - console: log to stdout
|
# - console: log to stderr
|
||||||
LOGGERS_HANDLERS = ['file']
|
LOGGERS_HANDLERS = ['file']
|
||||||
|
|
||||||
# Directory and file to be used by logging
|
# Directory and file to be used by logging
|
||||||
|
@ -93,7 +93,7 @@ def _init_moulinette():
|
||||||
'console': {
|
'console': {
|
||||||
'class': 'logging.StreamHandler',
|
'class': 'logging.StreamHandler',
|
||||||
'formatter': 'simple',
|
'formatter': 'simple',
|
||||||
'stream': 'ext://sys.stdout',
|
'stream': 'ext://sys.stderr',
|
||||||
},
|
},
|
||||||
'file': {
|
'file': {
|
||||||
'class': 'logging.handlers.WatchedFileHandler',
|
'class': 'logging.handlers.WatchedFileHandler',
|
||||||
|
|
Loading…
Add table
Reference in a new issue