from pkg_resources import Requirement, resource_filename
-from logparse.config import prefs
+from logparse import config
def hostname(path): # get the hostname of current server
hnfile = open(path, 'r')
# resolve-domains defined in individual sections of the config take priority over global config
if not fqdn:
- fqdn = prefs.getboolean("logparse", "resolve-domains")
+ fqdn = config.prefs.get("logparse", "resolve-domains")
if fqdn == 'ip':
return(ip)