New ๐ŸŒŠ wave for @helm

Commit f306c895

f306c8952febMerged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท ~1 modified

Description

fix: go lint

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
f306c8952feb
Parent
0fabb90593aa

pkg/log/log.gomodifiedView file

@@ -1,6 +1,8 @@
11 package log
22
33 import (
4+ "context"
5+
46 "github.com/helmwave/helmwave/pkg/helper"
57 formatter "github.com/helmwave/logrus-emoji-formatter"
68 "github.com/mgutz/ansi"
@@ -66,7 +68,7 @@
6668 func (l *Settings) Init() error {
6769 // Skip various low-level k8s client errors
6870 // There are a lot of context deadline errors being logged
69- utilruntime.ErrorHandlers = []func(error){ //nolint:reassign
71+ utilruntime.ErrorHandlers = []utilruntime.ErrorHandler{ //nolint:reassign
7072 logKubernetesClientError,
7173 }
7274
@@ -129,8 +131,8 @@
129131 }
130132 }
131133
132-func logKubernetesClientError(err error) {
133- log.WithError(err).Trace("kubernetes client error")
134+func logKubernetesClientError(ctx context.Context, err error, msg string, keysAndValues ...interface{}) {
135+ log.WithError(err).Trace("kubernetes client error, ", msg)
134136 }
135137
136138 func (l *Settings) Format() string {