Used class member "level" to replace class method getEffectiveLevel(), which will...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 27 Feb 2008 06:58:03 +0000 (06:58 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 27 Feb 2008 06:58:03 +0000 (06:58 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1021 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/EdkLogger.py

index 8db3e2d..c792490 100644 (file)
@@ -68,7 +68,7 @@ _WarningAsError = False
 #   @param  ExtraData   More information associated with "Message"
 # 
 def debug(Level, Message, ExtraData=None):
-    if _DebugLogger.getEffectiveLevel() > Level:
+    if _DebugLogger.level > Level:
         return
     if Level > DEBUG_9:
         return
@@ -107,7 +107,7 @@ def verbose(Message):
 #   @param  ExtraData   More information associated with "Message"
 # 
 def warn(ToolName, Message, File=None, Line=None, ExtraData=None):
-    if _InfoLogger.getEffectiveLevel() > WARN:
+    if _InfoLogger.level > WARN:
         return
 
     # if no tool name given, use caller's source file name as tool name