From ffbed7621083cd00a532cf20dc14a079df637da9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 24 Oct 2006 20:15:41 +0200 Subject: [PATCH] We was missing the warning level --- sugar/logger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sugar/logger.py b/sugar/logger.py index 56d66c60..7fe1223b 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -39,6 +39,8 @@ class LogWriter: def write(self, level, msg): if level == logging.ERROR: level_txt = 'ERROR' + elif level == logging.WARNING: + level_txt = 'WARNING' elif level == logging.DEBUG: level_txt = 'DEBUG' elif level == logging.INFO: