diff --git a/boswatch.py b/boswatch.py index 1ce3b91..cd52840 100755 --- a/boswatch.py +++ b/boswatch.py @@ -184,7 +184,7 @@ try: # if globals.config.getint("BOSWatch","useRegExFilter"): from includes import filter - filter.getFilters() + filter.loadFilters() try: # @@ -254,10 +254,11 @@ finally: logging.debug("exiting BOSWatch") except: logging.warning("failed in clean-up routine") - finally: - logging.info("BOSWatch exit()") + finally: # Close Logging + logging.debug("close Logging") logging.shutdown() fh.close() ch.close() + logging.info("BOSWatch exit()") exit(0) diff --git a/config/config.template.ini b/config/config.template.ini index ba124d6..8e738e2 100644 --- a/config/config.template.ini +++ b/config/config.template.ini @@ -50,10 +50,10 @@ filter_range_end = 9999999 #RegEX Filter Configuration #No Filter for a Typ/Plugin Combination = all Data pass #INDIVIDUAL_NAME = TYP;DATAFIELD;PLUGIN;REGEX -TYP = the Data Typ (FMS|ZVEI|POC) -DATAFIELD = the field of the Data Array. See interface.txt for names. -PLUGIN = the name of the Plugin to call with this Filter. -REGEX = the RegEX +#TYP = the Data Typ (FMS|ZVEI|POC) +#DATAFIELD = the field of the Data Array. See interface.txt for names. +#PLUGIN = the name of the Plugin to call with this Filter. +#REGEX = the RegEX #only ZVEI to template with 25### #testfilter = ZVEI;zvei;template;25[0-9F]{3} diff --git a/includes/filter.py b/includes/filter.py index 24b1af7..72a2aac 100644 --- a/includes/filter.py +++ b/includes/filter.py @@ -8,8 +8,8 @@ import re #Regex for Filter Check from includes import globals # Global variables -def getFilters(): - logging.debug("reading config file") +def loadFilters(): + logging.debug("loading filters") try: for key,val in globals.config.items("Filters"): logging.debug(" - %s = %s", key, val)