Fix double errors + silent stats show

dev
Ice3man543 2021-07-07 19:56:20 +05:30
parent 53cfeb1d58
commit 8f74415cc5
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ func (s *Store) ValidateTemplates(templatesList, workflowsList []string) bool {
}
notErrored = false
gologger.Error().Msgf("Error occurred loading template %s: %s\n", k, err)
continue
}
_, err = templates.Parse(k, s.config.ExecutorOptions)
if err != nil {

View File

@ -167,7 +167,7 @@ func printCallback(stats clistats.StatisticsClient) {
builder.WriteRune(')')
builder.WriteRune('\n')
gologger.Print().Msgf("%s", builder.String())
fmt.Printf("%s", builder.String())
}
// getMetrics returns a map of important metrics for client