diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-31 22:16:58 +0100 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-31 22:16:58 +0100 |
commit | c40db19a0214bdc6aa4807d3f704815fad833992 (patch) | |
tree | 2cda1c8d4316a9239135200040fa059eb17006c9 /src/main.py | |
parent | da06f1c3d243477e7481c2cc07d86843b14a65a4 (diff) |
updated code to work again
Added changes to make it work with python-genericore version 6.0
Added example configuration
Diffstat (limited to 'src/main.py')
-rwxr-xr-x | src/main.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.py b/src/main.py index 473729f4..c70bffd4 100755 --- a/src/main.py +++ b/src/main.py @@ -3,15 +3,16 @@ import sys,json,time from snmp_users import snmp_users import logging import genericore as gen -log = logging.getLogger('mail_proc_main') +MODULE_NAME='snmp_users' +log = logging.getLogger(MODULE_NAME) PROTO_VERSION = 1 DESCRIPTION = 'performes statistical analysis against mails from stream' # set up instances of needed modules conf = gen.Configurator(PROTO_VERSION,DESCRIPTION) -amqp = gen.auto_amqp() -s = snmp_users() # the magic mail parsing class +amqp = gen.auto_amqp(MODULE_NAME) +s = snmp_users(MODULE_NAME) # the magic mail parsing class conf.configure([amqp,s]) #set up parser and eval parsed stuff |