fix NameError
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 12 Mar 2012 16:29:49 +0000 (12:29 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 12 Mar 2012 16:29:49 +0000 (12:29 -0400)
sfa/importer/__init__.py

index 969cc5b..236bf4d 100644 (file)
@@ -19,7 +19,7 @@ class Importer:
     def __init__(self):
         self.config = Config()
         self.logger = _SfaLogger(logfile='/var/log/sfa_import.log', loggername='importlog')
-        self.logger.setLevelFromOptVerbose(config.SFA_API_LOGLEVEL)
+        self.logger.setLevelFromOptVerbose(self.config.SFA_API_LOGLEVEL)
         self.auth_hierarchy = Hierarchy ()
         self.TrustedRoots = TrustedRoots(self.config.get_trustedroots_dir())