From bcbfc33d2654eb3edee447efd2f6d8528904108f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Zamanillo?= Date: Mon, 24 Aug 2020 08:46:56 +0200 Subject: [PATCH] Removed "Loaded template" in favour of "Loading templates..." "Loaded template" it's a bit noisy and redundant, a single "Loading templates..." before template paths iteration looks much better. --- v2/internal/runner/runner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index 4949be0a..11ec4bd3 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -205,7 +205,7 @@ func hasMatchingSeverity(templateSeverity string, allowedSeverities []string) bo func (r *Runner) logTemplateLoaded(id, name, author, severity string) { // Display the message for the template - message := fmt.Sprintf("[%s] Loaded template %s (%s)", + message := fmt.Sprintf("[%s] %s (%s)", r.colorizer.BrightBlue(id).String(), r.colorizer.Bold(name).String(), r.colorizer.BrightYellow("@"+author).String()) if severity != "" { message += " [" + r.colorizer.Yellow(severity).String() + "]" @@ -221,6 +221,7 @@ func (r *Runner) getParsedTemplatesFor(templatePaths []string, severities string allSeverities := strings.Split(severities, ",") filterBySeverity := len(severities) > 0 + gologger.Infof("Loading templates...") for _, match := range templatePaths { t, err := r.parse(match) switch t.(type) {