removed the debug comments

This commit is contained in:
pb
2025-05-19 18:58:33 +02:00
parent e1b0ad089c
commit 6917295fbd
2 changed files with 1 additions and 12 deletions

View File

@@ -168,7 +168,7 @@ func LogKubernetesArgo(wfName string, namespace string, watcher watch.Interface)
if !slices.Contains(pods,pod.Name){
pl := wfl.With().Str("pod", pod.Name).Logger()
if wfName == pod.Name { pods = append(pods, pod.Name); continue } // One of the node is the Workflow, the others are the pods so don't try to log on the wf name
fmt.Println("Found a new pod to log : " + pod.Name)
pl.Info().Msg("Found a new pod to log : " + pod.Name)
wg.Add(1)
go logKubernetesPods(namespace, wfName, pod.Name, pl, &wg)
pods = append(pods, pod.Name)
@@ -222,10 +222,6 @@ func logKubernetesPods(executionId string, wfName string,podName string, logger
return
}
fmt.Println("=======================")
fmt.Println("Starting to log " + name)
fmt.Println("=======================")
scanner := bufio.NewScanner(reader)
for scanner.Scan() {
log := scanner.Text()
@@ -234,8 +230,4 @@ func logKubernetesPods(executionId string, wfName string,podName string, logger
logger.Info().Msg(string(jsonified))
}
wg.Done()
fmt.Println("=======================")
fmt.Println("Finishing to log " + name)
fmt.Println("=======================")
}