Merge pull request #254 from vzamanillo/noisy-load-template

Removed "Loaded template" in favour of "Loading templates..."
dev
bauthard 2020-08-24 22:58:29 +05:30 committed by GitHub
commit c86cb8edb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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) {