From e8f59b0797b892f7e233c4a2b9c5dc84ff16a0f9 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Thu, 22 Feb 2018 11:39:19 +0530 Subject: [PATCH] Avoid explicit mention of glusterfs in error strings. Signed-off-by: Humble Chirammal --- pkg/volume/glusterfs/glusterfs_util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/volume/glusterfs/glusterfs_util.go b/pkg/volume/glusterfs/glusterfs_util.go index 1ed4c658efe..83d8a13c769 100644 --- a/pkg/volume/glusterfs/glusterfs_util.go +++ b/pkg/volume/glusterfs/glusterfs_util.go @@ -34,17 +34,17 @@ func readGlusterLog(path string, podName string) error { var line2 string linecount := 0 - glog.Infof("glusterfs: failure, now attempting to read the gluster log for pod %s", podName) + glog.Infof("failure, now attempting to read the gluster log for pod %s", podName) // Check and make sure path exists if len(path) == 0 { - return fmt.Errorf("glusterfs: log file does not exist for pod: %s", podName) + return fmt.Errorf("log file does not exist for pod %s", podName) } // open the log file file, err := os.Open(path) if err != nil { - return fmt.Errorf("glusterfs: could not open log file for pod: %s", podName) + return fmt.Errorf("could not open log file for pod %s", podName) } defer file.Close()