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>
This commit is contained in:
emellor@ewan committed 2005-09-21 11:30:59 +01:00
1 parent df0fc046af
commit efa1534b26
1 file changed
+1 -5
+1 -5
View File
@@ -50,9 +50,6 @@ class XendLogging:
self.getLogger().setLevel(level)
self.level = level
def getLevel(self, level):
return logging.getLevelName(self.level)
def getLogger(self):
return logging.getLogger("xend")
@@ -65,8 +62,7 @@ class XendLogging:
backupCount=self.backupCount)
self.logfilename = filename
self.logfile.setFormatter(Formatter(self.logFileFormat, self.dateFormat))
log = self.getLogger()
log.addHandler(self.logfile)
self.getLogger().addHandler(self.logfile)
def getLogFile(self):
return self.logfile
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.