From 1d1b62ec4f8d1996bde06221d18c79bf0c06730e Mon Sep 17 00:00:00 2001 From: Igor Gov Date: Thu, 12 Aug 2021 09:32:35 +0300 Subject: [PATCH] Improving log dump feature logs (#207) --- cli/mizu/fsUtils/mizuLogsUtils.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/mizu/fsUtils/mizuLogsUtils.go b/cli/mizu/fsUtils/mizuLogsUtils.go index e063fb84c..5edb5d41b 100644 --- a/cli/mizu/fsUtils/mizuLogsUtils.go +++ b/cli/mizu/fsUtils/mizuLogsUtils.go @@ -42,19 +42,19 @@ func DumpLogs(provider *kubernetes.Provider, ctx context.Context, filePath strin if err := AddStrToZip(zipWriter, logs, fmt.Sprintf("%s.%s.log", pod.Namespace, pod.Name)); err != nil { logger.Log.Errorf("Failed write logs, %v", err) } else { - logger.Log.Infof("Successfully added log length %d from pod: %s.%s", len(logs), pod.Namespace, pod.Name) + logger.Log.Debugf("Successfully added log length %d from pod: %s.%s", len(logs), pod.Namespace, pod.Name) } } if err := AddFileToZip(zipWriter, config.GetConfigFilePath()); err != nil { logger.Log.Debugf("Failed write file, %v", err) } else { - logger.Log.Infof("Successfully added file %s", config.GetConfigFilePath()) + logger.Log.Debugf("Successfully added file %s", config.GetConfigFilePath()) } if err := AddFileToZip(zipWriter, logger.GetLogFilePath()); err != nil { logger.Log.Debugf("Failed write file, %v", err) } else { - logger.Log.Infof("Successfully added file %s", logger.GetLogFilePath()) + logger.Log.Debugf("Successfully added file %s", logger.GetLogFilePath()) } - logger.Log.Infof("You can find the zip with all logs in %s\n", filePath) + logger.Log.Infof("You can find the zip file with all logs in %s\n", filePath) return nil }