From 0d83e9f4e5d0b74554fcee905e6ab5175cca9587 Mon Sep 17 00:00:00 2001 From: Christhonie Geldenhuys Date: Fri, 27 Dec 2019 18:50:56 +0200 Subject: [PATCH] Fixed spelling mistake in log output --- app/tools/checker_master.py | 6 +++--- app/tools/metrics_master.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/tools/checker_master.py b/app/tools/checker_master.py index 27119d3..65ec096 100644 --- a/app/tools/checker_master.py +++ b/app/tools/checker_master.py @@ -41,19 +41,19 @@ def start_worker(serv): port = sql.get_setting('haproxy_sock_port') cmd = "tools/checker_worker.py %s --port %s &" % (serv, port) os.system(cmd) - funct.logging("localhost", " Masrer started new worker for: "+serv, alerting=1) + funct.logging("localhost", " Master started new worker for: "+serv, alerting=1) def kill_worker(serv): cmd = "ps ax |grep 'tools/checker_worker.py %s'|grep -v grep |awk '{print $1}' |xargs kill" % serv output, stderr = funct.subprocess_execute(cmd) - funct.logging("localhost", " Masrer killed worker for: "+serv, alerting=1) + funct.logging("localhost", " Master killed worker for: "+serv, alerting=1) if stderr: funct.logging("localhost", stderr, alerting=1) def kill_all_workers(): cmd = "ps ax |grep 'tools/checker_worker.py' |grep -v grep |awk '{print $1}' |xargs kill" output, stderr = funct.subprocess_execute(cmd) - funct.logging("localhost", " Masrer killing all workers", alerting=1) + funct.logging("localhost", " Master killing all workers", alerting=1) if stderr: funct.logging("localhost", stderr, alerting=1) diff --git a/app/tools/metrics_master.py b/app/tools/metrics_master.py index 24691ff..6b296d2 100644 --- a/app/tools/metrics_master.py +++ b/app/tools/metrics_master.py @@ -65,12 +65,12 @@ def start_worker(serv): port = sql.get_setting('haproxy_sock_port') cmd = "tools/metrics_worker.py %s --port %s &" % (serv, port) os.system(cmd) - funct.logging("localhost", " Masrer started new metrics worker for: "+serv, metrics=1) + funct.logging("localhost", " Master started new metrics worker for: "+serv, metrics=1) def kill_worker(serv): cmd = "ps ax |grep 'tools/metrics_worker.py %s'|grep -v grep |awk '{print $1}' |xargs kill" % serv output, stderr = funct.subprocess_execute(cmd) - funct.logging("localhost", " Masrer killed metrics worker for: "+serv, metrics=1) + funct.logging("localhost", " Master killed metrics worker for: "+serv, metrics=1) if stderr: funct.logging("localhost", stderr, metrics=1) @@ -78,19 +78,19 @@ def start_waf_worker(serv): port = sql.get_setting('haproxy_sock_port') cmd = "tools/metrics_waf_worker.py %s --port %s &" % (serv, port) os.system(cmd) - funct.logging("localhost", " Masrer started new WAF metrics worker for: "+serv, metrics=1) + funct.logging("localhost", " Master started new WAF metrics worker for: "+serv, metrics=1) def kill_waf_worker(serv): cmd = "ps ax |grep 'tools/metrics_waf_worker.py %s'|grep -v grep |awk '{print $1}' |xargs kill" % serv output, stderr = funct.subprocess_execute(cmd) - funct.logging("localhost", " Masrer killed WAF metrics worker for: "+serv, metrics=1) + funct.logging("localhost", " Master killed WAF metrics worker for: "+serv, metrics=1) if stderr: funct.logging("localhost", stderr, metrics=1) def kill_all_workers(): cmd = "ps ax |grep -e 'tools/metrics_worker.py\|tools/metrics_waf_worker.py' |grep -v grep |awk '{print $1}' |xargs kill" output, stderr = funct.subprocess_execute(cmd) - funct.logging("localhost", " Masrer killing all metrics workers", metrics=1) + funct.logging("localhost", " Master killing all metrics workers", metrics=1) if stderr: funct.logging("localhost", stderr, metrics=1)