From 7866aee3c260a2cc9a4dd94f9a3f3739d71e405d Mon Sep 17 00:00:00 2001 From: Dhruv-J Date: Mon, 17 Jul 2023 08:10:19 -0700 Subject: [PATCH] more logs Signed-off-by: Dhruv-J --- plugins/clickhouse-monitor/main.go | 1 + test/e2e/framework.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/clickhouse-monitor/main.go b/plugins/clickhouse-monitor/main.go index d9c027fa..529b3570 100644 --- a/plugins/clickhouse-monitor/main.go +++ b/plugins/clickhouse-monitor/main.go @@ -122,6 +122,7 @@ func startMonitor(connect *sql.DB) { klog.ErrorS(nil, "Remaining rounds number to be skipped should be larger than or equal to 0", "number", remainingRoundsNum) os.Exit(1) } + klog.InfoS("forever run iteration") <-stopCh klog.InfoS("Stopping ClickHouse Monitor") os.Exit(0) diff --git a/test/e2e/framework.go b/test/e2e/framework.go index 0847f2e7..5630f3a5 100644 --- a/test/e2e/framework.go +++ b/test/e2e/framework.go @@ -1653,7 +1653,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai log.Infof("reached into if condition") return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker, stderr: <%v>, err: <%v>", cmd, stderr, err) } - log.Infof("successfully searched substring, was not file not found error") + llog.Infof("did not get past if condition first command") } else { stdout = strings.TrimSpace(stdout) files = strings.Split(stdout, "\n") @@ -1667,6 +1667,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai log.Infof("reached into if condition") return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker, stderr: <%v>, err: <%v>", cmd, stderr, err) } + log.Infof("did not get past if condition second command") } else { stdout = strings.TrimSpace(stdout) files = append(files, strings.Split(stdout, "\n")...) @@ -1692,6 +1693,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai log.Infof("reached into if condition") return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker2, stderr: <%v>, err: <%v>", cmd, stderr, err) } + log.Infof("did not get past if condition third command") } else { stdout = strings.TrimSpace(stdout) files = strings.Split(stdout, "\n") @@ -1705,6 +1707,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai log.Infof("reached into if condition") return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker2, stderr: <%v>, err: <%v>", cmd, stderr, err) } + log.Infof("did not get past if condition fourth command") } else { stdout = strings.TrimSpace(stdout) files = append(files, strings.Split(stdout, "\n")...)