From 4805252e0f043c93ccdf8e87d55c18e2bbcc2af3 Mon Sep 17 00:00:00 2001 From: xiangpengzhao Date: Fri, 26 May 2017 15:00:38 +0800 Subject: [PATCH] Do not log the content of pod manifest if parsing fails. --- pkg/kubelet/config/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubelet/config/file.go b/pkg/kubelet/config/file.go index 2d37af6b659..421d19fa992 100644 --- a/pkg/kubelet/config/file.go +++ b/pkg/kubelet/config/file.go @@ -189,8 +189,7 @@ func (s *sourceFile) extractFromFile(filename string) (pod *v1.Pod, err error) { return pod, nil } - return pod, fmt.Errorf("%v: read '%v', but couldn't parse as pod(%v).\n", - filename, string(data), podErr) + return pod, fmt.Errorf("%v: couldn't parse as pod(%v), please check config file.\n", filename, podErr) } func (s *sourceFile) replaceStore(pods ...*v1.Pod) (err error) {