from pkg_resources import Requirement, resource_filename
-from . import config
+from logparse.config import prefs
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 = config.prefs['resolve-domains']
+ fqdn = prefs.getboolean("logparse", "resolve-domains")
if fqdn == 'ip':
return(ip)