Unify color of debug message in gbs, gbp and depanneur.
authorHuang Hao <hao.h.huang@intel.com>
Fri, 12 Oct 2012 09:10:49 +0000 (17:10 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Fri, 12 Oct 2012 09:12:20 +0000 (17:12 +0800)
Fix #450.

Change-Id: Ifdd796f6b4747e0a8903f41be24f1ee9af0cf3ed

gitbuildsys/msger.py

index 440a2a7d9409aeb449e2e82e6a37dbc5196a55cc..3728a8d16eed2828e80cf6e55b27246e000362ba 100644 (file)
@@ -44,6 +44,7 @@ INFO_COLOR = 32 # green
 WARN_COLOR = 33 # yellow
 ERR_COLOR  = 31 # red
 ASK_COLOR  = 34 # blue
+DEBUG_COLOR = 35 # Magenta
 NO_COLOR = 0
 
 # save the timezone info at import time
@@ -307,7 +308,7 @@ def warning(msg):
 
 def debug(msg):
     head, msg = _split_msg('debug', msg)
-    _color_perror(head, ERR_COLOR, msg, level = 'debug')
+    _color_perror(head, DEBUG_COLOR, msg, level = 'debug')
 
 def error(msg):
     head, msg = _split_msg('error', msg)