Fix some hook log not honoring log level (#1769)

Fixes #1742
This commit is contained in:
Yusuke Kuoka 2021-04-10 16:50:42 +09:00 committed by GitHub
parent 1d7608f42c
commit 589b26aaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package event
import (
"fmt"
"os"
"strings"
"github.com/roboll/helmfile/pkg/environment"
@ -87,7 +86,7 @@ func (bus *Bus) Trigger(evt string, evtErr error, context map[string]interface{}
}
}
fmt.Fprintf(os.Stderr, "%s: basePath=%s\n", bus.StateFilePath, bus.BasePath)
bus.Logger.Debugf("hook[%s]: stateFilePath=%s, basePath=%s\n", name, bus.StateFilePath, bus.BasePath)
data := map[string]interface{}{
"Environment": bus.Env,