update setup.py to python 3, implement config file settings
[logparse.git] / logparse / parsers / httpd.py
index 243af06be1900ea745c8d17ee0db3425e1f3af87..221f98224a85c5e70e82414478e9ac251507bd0a 100644 (file)
@@ -21,9 +21,9 @@ def parse_log():
     output = ''
     logger.debug("Starting httpd section")
     output += opentag('div', 1, 'httpd', 'section')
-    accesslog = readlog(config['logs']['httpd'] + '/access.log')
+    accesslog = readlog(config.prefs['logs']['httpd'] + '/access.log')
     a = len(accesslog.split('\n'))
-    errorlog = readlog(config['logs']['httpd'] + '/error.log')
+    errorlog = readlog(config.prefs['logs']['httpd'] + '/error.log')
     e = len(errorlog.split('\n'))
     data_b = 0
     ips = []