Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruv-J <dhruvj@vmware.com>
  • Loading branch information
Dhruv-J committed Jul 17, 2023
1 parent 81bf9b9 commit 7866aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/clickhouse-monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")...)
Expand All @@ -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")
Expand All @@ -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")...)
Expand Down

0 comments on commit 7866aee

Please sign in to comment.