From 8116fcacd6255f9a3fad33a4674fa7aa265bdaa3 Mon Sep 17 00:00:00 2001 From: Gene Kuo Date: Sun, 30 Apr 2023 15:50:53 +0900 Subject: [PATCH] Add logging During Statup for haproxy-statsd Currently there is no logging with haproxy-statsd when it starts up and start running. In this case, we are unable to know if the process starts or not as the log file is completely empty if there is no exceptions. This commits added an info log during haproxy-statsd startup. Change-Id: I572005479b7caffe6214ec13f73ee052ed61e8f9 --- docker/haproxy-statsd/haproxy-statsd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/haproxy-statsd/haproxy-statsd.py b/docker/haproxy-statsd/haproxy-statsd.py index 5fe7b52071..9f03b62778 100755 --- a/docker/haproxy-statsd/haproxy-statsd.py +++ b/docker/haproxy-statsd/haproxy-statsd.py @@ -166,6 +166,7 @@ class HAProxy(object): pipe.send() def run(self): + self.log.info("Starting haproxy-statsd") while True: try: self._run()