Skip to content

Commit

Permalink
fixed logger init for delivery cache tools
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdel committed Jan 29, 2021
1 parent 0323cd9 commit ef2385e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pymod/alarmtoqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import pytz
import sys

conf = '/etc/argo-nagios-ams-publisher/ams-publisher.conf'
logfile = '/var/log/argo-nagios-ams-publisher/ams-publisher.log'

CONF = '/etc/argo-nagios-ams-publisher/ams-publisher.conf'


def seteuser(user):
Expand Down Expand Up @@ -46,7 +46,7 @@ def build_msg(args, *headers):

def main():
parser = argparse.ArgumentParser()
lobj = log.Logger(sys.argv[0], logfile)
lobj = log.Logger(sys.argv[0])
logger = lobj.get()
confopts = config.parse_config(logger)
nagioshost = confopts['general']['host']
Expand Down
5 changes: 2 additions & 3 deletions pymod/metrictoqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
import datetime
import pytz

conf = '/etc/argo-nagios-ams-publisher/ams-publisher.conf'
logfile = '/var/log/argo-nagios-ams-publisher/ams-publisher.log'
CONF = '/etc/argo-nagios-ams-publisher/ams-publisher.conf'


def seteuser(user):
Expand Down Expand Up @@ -47,7 +46,7 @@ def build_msg(args, *headers):

def main():
parser = argparse.ArgumentParser()
lobj = log.Logger(sys.argv[0], logfile)
lobj = log.Logger(sys.argv[0])
logger = lobj.get()
confopts = config.parse_config(logger)
nagioshost = confopts['general']['host']
Expand Down

0 comments on commit ef2385e

Please sign in to comment.