mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Go the slog way
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
This commit is contained in:
parent
6ce967391d
commit
3e4e78378e
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ limitations under the License.
|
|||
package main // import "helm.sh/helm/v4/cmd/helm"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
// Import to initialize client auth plugins.
|
||||
|
|
@ -41,7 +41,7 @@ func main() {
|
|||
|
||||
cmd, err := helmcmd.NewRootCmd(os.Stdout, os.Args[1:])
|
||||
if err != nil {
|
||||
helmcmd.Logger.Warn(fmt.Sprintf("%+v", err))
|
||||
helmcmd.Logger.Warn("command failed", slog.Any("error", err))
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue