ia64/xen-unstable

changeset 7002:2eee9f6487ff

Removed unused getLevel method, and don't use intermediate variable called
'log', as this name hides the global logger instance.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Wed Sep 21 11:30:59 2005 +0100 (2005-09-21)
parents 79f695037ab7
children 82bc05411d85
files tools/python/xen/xend/XendLogging.py
line diff
     1.1 --- a/tools/python/xen/xend/XendLogging.py	Wed Sep 21 11:29:23 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendLogging.py	Wed Sep 21 11:30:59 2005 +0100
     1.3 @@ -50,9 +50,6 @@ class XendLogging:
     1.4          self.getLogger().setLevel(level)
     1.5          self.level = level
     1.6  
     1.7 -    def getLevel(self, level):
     1.8 -        return logging.getLevelName(self.level)
     1.9 -
    1.10      def getLogger(self):
    1.11          return logging.getLogger("xend")
    1.12  
    1.13 @@ -65,8 +62,7 @@ class XendLogging:
    1.14                                             backupCount=self.backupCount)
    1.15          self.logfilename = filename
    1.16          self.logfile.setFormatter(Formatter(self.logFileFormat, self.dateFormat))
    1.17 -        log = self.getLogger()
    1.18 -        log.addHandler(self.logfile)
    1.19 +        self.getLogger().addHandler(self.logfile)
    1.20  
    1.21      def getLogFile(self):
    1.22          return self.logfile