Merge pull request #383 from cdrage/clean-up-logging

Update logging for logrus
This commit is contained in:
Tomas Kral
2017-01-19 18:37:25 +01:00
committed by GitHub
147 changed files with 31307 additions and 4183 deletions
+6
View File
@@ -64,6 +64,12 @@ var RootCmd = &cobra.Command{
logrus.SetLevel(logrus.DebugLevel)
}
// Disable the timestamp (Kompose is too fast!)
formatter := new(logrus.TextFormatter)
formatter.DisableTimestamp = true
formatter.ForceColors = true
logrus.SetFormatter(formatter)
// Set the appropriate suppress warnings and error on warning flags
if GlobalSuppressWarnings {
logrus.SetLevel(logrus.ErrorLevel)