[PATCH] Logs: message type format fix

olichtne at redhat.com olichtne at redhat.com
Thu May 16 13:23:58 UTC 2013


From: Ondrej Lichtner <olichtne at redhat.com>

When logging warning messages the "WARNING:" would get trimmed because
of the format.

Signed-off-by: Ondrej Lichtner <olichtne at redhat.com>
---
 lnst/Common/Logs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lnst/Common/Logs.py b/lnst/Common/Logs.py
index 284ecc2..379405c 100644
--- a/lnst/Common/Logs.py
+++ b/lnst/Common/Logs.py
@@ -97,7 +97,7 @@ class LoggingCtl:
 
 
         self.formatter = MultilineFormater(
-                            '%(asctime)s| %(address)17.17s| %(levelname)5.5s: '
+                            '%(asctime)s| %(address)17.17s| %(levelname)7.7s: '
                             '%(message)s', '%Y-%m-%d %H:%M:%S', " "*4)
 
 
-- 
1.7.11.7



More information about the LNST-developers mailing list