little changes

This commit is contained in:
Schrolli 2015-05-26 07:19:24 +02:00
parent 4f79af944d
commit d9b8ae3035
3 changed files with 10 additions and 9 deletions

View file

@ -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)

View file

@ -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}

View file

@ -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)