Microdecision: prefix info messages with blue 'Info:'

This commit is contained in:
Alexandre Aubin 2018-07-25 14:38:34 +00:00
parent cbd2c1611c
commit 6f9bb54542
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@
"file_not_exist": "File does not exist: '{path}'",
"folder_exists": "Folder already exists: '{path}'",
"folder_not_exist": "Folder does not exist",
"info": "Info:",
"instance_already_running": "An instance is already running",
"invalid_argument": "Invalid argument '{argument}': {error}",
"invalid_password": "Invalid password",

View file

@ -182,7 +182,7 @@ class TTYHandler(logging.StreamHandler):
if self.level <= log.DEBUG:
# add level name before message
level = '%s ' % record.levelname
elif record.levelname in ['SUCCESS', 'WARNING', 'ERROR']:
elif record.levelname in ['SUCCESS', 'WARNING', 'ERROR', 'INFO']:
# add translated level name before message
level = '%s ' % m18n.g(record.levelname.lower())
color = self.LEVELS_COLOR.get(record.levelno, 'white')