rework parser loading interface
[logparse.git] / logparse / parsers / httpd.py
index 2e6ae2ff6e8c3dec92f11b8d8fedb4271d34e7bd..b86f1c1bd5b4830788ee5b627e00a196af6d835d 100644 (file)
@@ -41,9 +41,9 @@ class Httpd(Parser):
         logger.debug("Starting httpd section")
         section = Section("httpd")
 
-        accesslog = readlog(prefs("logs", "httpd-access"))
+        accesslog = readlog(config.prefs.get("logs", "httpd-access"))
 
-        errorlog= readlog(prefs("logs", "httpd-error"))
+        errorlog= readlog(config.prefs.get("logs", "httpd-error"))
         total_errors = len(errorlog.splitlines())
 
         logger.debug("Retrieved log data")