mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-20 15:20:16 +01:00
little changes
This commit is contained in:
parent
4f79af944d
commit
d9b8ae3035
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue