[Extras-cauldron-commits] r104 - trunk/devel-mover

mishas at garage.maemo.org mishas at garage.maemo.org
Sat Aug 23 13:17:13 EEST 2008


Author: mishas
Date: 2008-08-23 13:17:13 +0300 (Sat, 23 Aug 2008)
New Revision: 104

Modified:
   trunk/devel-mover/interface.py
Log:
made use of loglevel parameter in ActualWorker.__init__ (suggested by pylint)

Modified: trunk/devel-mover/interface.py
===================================================================
--- trunk/devel-mover/interface.py	2008-08-23 10:16:04 UTC (rev 103)
+++ trunk/devel-mover/interface.py	2008-08-23 10:17:13 UTC (rev 104)
@@ -87,7 +87,7 @@
 
 class ActualWorker:
     '''a class with methods that perform the actual file copying/command execution'''
-    def __init__(self, log=None, loglevel=logging.WARNING):
+    def __init__(self, log=None, loglevel=logging.DEBUG):
         self.__logger = logging.getLogger()
 
         if log is None:
@@ -98,7 +98,7 @@
 
             logging.basicConfig(filename=log, datefmt=date_format, format=format)
 
-        self.__logger.setLevel(logging.DEBUG)   # for now ignore the arument
+        self.__logger.setLevel(loglevel)   # for now ignore the arument
 
     def exists(self, what):
         self.__logger.debug('exists: %s' % what)
@@ -500,7 +500,8 @@
         if os.environ['REQUEST_METHOD'] == 'GET':
             get_processor()
         else:
-            post_processor(ActualWorker(MAIN_SECTION.log, MAIN_SECTION.loglevel))
+            # post_processor(ActualWorker(MAIN_SECTION.log, MAIN_SECTION.loglevel))
+            post_processor(ActualWorker(MAIN_SECTION.log))
     except:
         cgi.print_exception()
 



More information about the Extras-cauldron-commits mailing list