mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-02 19:15:26 +00:00
Changed two errors to warnings.
This commit is contained in:
@@ -274,7 +274,7 @@ func copyPcapFiles(clientset *kubernetes.Clientset, config *rest.Config, destDir
|
|||||||
// List worker pods
|
// List worker pods
|
||||||
workerPods, err := listWorkerPods(context.Background(), clientset, targetNamespaces)
|
workerPods, err := listWorkerPods(context.Background(), clientset, targetNamespaces)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("Error listing worker pods")
|
log.Warn().Err(err).Msg("Error listing worker pods")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
var currentFiles []string
|
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
|
// Get the list of NamespaceFiles (files per namespace) and their source directories
|
||||||
namespaceFiles, err := listFilesInPodDir(context.Background(), clientset, config, pod.Name, targetNamespaces, cutoffTime)
|
namespaceFiles, err := listFilesInPodDir(context.Background(), clientset, config, pod.Name, targetNamespaces, cutoffTime)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msgf("Error listing files in pod %s", pod.Name)
|
log.Warn().Err(err).Send()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user