Fix logger (#99)

We were sending a message in a given level instead of setting the level
of the logger

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-14 15:19:55 +01:00
committed by GitHub
parent b79b5d4b93
commit 5c4703dac7
2 changed files with 2 additions and 5 deletions

View File

@@ -38,7 +38,6 @@ func (s ImmucoreConsole) RunTemplate(st []string, template string) error {
for _, svc := range st {
out, err := s.Run(fmt.Sprintf(template, svc))
if err != nil {
Log.Err(err).Msg("Run template")
Log.Debug().Str("output", out).Msg("Run template")
errs = multierror.Append(errs, err)
continue