Browse Source

Eliminate a superfluous condition select sentense

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac176@1956 e5f2f494-b856-4b98-b285-d166d9295462
Jerry 15 years ago
parent
commit
46f4eadc54
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/lib/python/isc/log/log.py

+ 2 - 4
src/lib/python/isc/log/log.py

@@ -171,10 +171,8 @@ class ModuleLogger(logging.getLoggerClass()):
         self.addHandler(self.syslog_handler)
 
     def update_rotate_handler(self, log_file, max_bytes, backup_count):
-        # If logFile was specified
-        if (self.rotating_handler not in self.handlers):
-            pass
-        else:
+        if (self.rotating_handler in self.handlers):
+            # If logFile was specified
             if(log_file != 0 and log_file != ''):
                 self.rotating_handler.update_config(log_file, max_bytes, backup_count)
             else: