From faf67c2ddaab95799125b873619410a703a4574a Mon Sep 17 00:00:00 2001 From: pb Date: Tue, 3 Sep 2024 15:57:35 +0200 Subject: [PATCH] correct some comments/typo --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 580c04e..3ef3269 100644 --- a/main.go +++ b/main.go @@ -120,6 +120,8 @@ func getWorkflowId(exec_id string) string { return wf_exec.WorkflowID } +// So far we only log the output from + func executeWorkflow(argo_file_path string) { // var stdout, stderr, stdout_logs, stderr_logs io.ReadCloser var stdout, stderr io.ReadCloser @@ -186,7 +188,7 @@ func logWorkflow(pipe io.ReadCloser, wg *sync.WaitGroup) { // Debug, no logs sent func logPods(pipe io.ReadCloser, name string) { - pods_logger = wf_logger.With().Str("sortie name", name).Logger() + pods_logger = wf_logger.With().Str("pod_name", name).Logger() scanner := bufio.NewScanner(pipe) for scanner.Scan() { log := scanner.Text() @@ -201,7 +203,7 @@ func loadConfig(is_k8s bool, parser *argparse.Parser) { o = initOnion(o) // These variables can only be retrieved in the onion - // Variables that don't depend on the environmen (from conf file), can be loaded after + // Variables that don't depend on the environment (from conf file), can be loaded after // We can't use underscore in the env variable names because it's the delimitor with OCMONITOR too setConf(is_k8s, o, parser)