From 858864e7bc2cfeddb87aec4255d9e5482471aa02 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:59:43 -0800 Subject: [PATCH] Changed two errors to warnings. --- cmd/pcapDumpRunner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pcapDumpRunner.go b/cmd/pcapDumpRunner.go index fe32fdeff..3b51c72da 100644 --- a/cmd/pcapDumpRunner.go +++ b/cmd/pcapDumpRunner.go @@ -274,7 +274,7 @@ func copyPcapFiles(clientset *kubernetes.Clientset, config *rest.Config, destDir // List worker pods workerPods, err := listWorkerPods(context.Background(), clientset, targetNamespaces) if err != nil { - log.Error().Err(err).Msg("Error listing worker pods") + log.Warn().Err(err).Msg("Error listing worker pods") return err } var currentFiles []string @@ -284,7 +284,7 @@ func copyPcapFiles(clientset *kubernetes.Clientset, config *rest.Config, destDir // Get the list of NamespaceFiles (files per namespace) and their source directories namespaceFiles, err := listFilesInPodDir(context.Background(), clientset, config, pod.Name, targetNamespaces, cutoffTime) if err != nil { - log.Error().Err(err).Msgf("Error listing files in pod %s", pod.Name) + log.Warn().Err(err).Send() continue }