From 6f9bb5454233205b60efdff3b9b1e1a620fb8218 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 25 Jul 2018 14:38:34 +0000 Subject: [PATCH] Microdecision: prefix info messages with blue 'Info:' --- locales/en.json | 1 + moulinette/interfaces/cli.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/locales/en.json b/locales/en.json index 5adaab5b..1d95b6f1 100644 --- a/locales/en.json +++ b/locales/en.json @@ -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", diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index 8ed96ced..00737b5e 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -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')