Skip to content
Snippets Groups Projects
Commit 1d673a65 authored by Pavel Eis's avatar Pavel Eis
Browse files

changes in Tipping point connector - little reorganisation of cone in main

parent a5a7a80e
Branches
No related tags found
No related merge requests found
......@@ -403,13 +403,12 @@ def reload_me(signum, frame):
def main():
global running_flag
global reload_flag
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG, filename='tipping_point_daemon_log.log', filemode='w')
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG, filename='tipping_point_log.log', filemode='w')
optp = get_args()
opts, args = optp.parse_args()
if not args or opts.name is None or opts.dir is None:
optp.print_help()
sys.exit()
try:
if opts.oneshot:
signal.signal(signal.SIGINT, terminate_me)
signal.signal(signal.SIGTERM, terminate_me)
......@@ -447,8 +446,6 @@ def main():
break
else:
time.sleep(opts.poll)
except Exception as e:
logging.exception(e)
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment