Skip to content

Commit

Permalink
Removed "Loaded template" in favour of "Loading templates..."
Browse files Browse the repository at this point in the history
"Loaded template" it's a bit noisy and redundant, a single "Loading templates..." before template paths iteration looks much better.
  • Loading branch information
vzamanillo committed Aug 24, 2020
1 parent e1fa728 commit bcbfc33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2/internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() + "]"
Expand All @@ -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) {
Expand Down

0 comments on commit bcbfc33

Please sign in to comment.