File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
components/ws-manager-mk2 Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"github.com/bombsimon/logrusr/v4"
24
24
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
25
25
"github.com/prometheus/client_golang/prometheus"
26
+ "github.com/sirupsen/logrus"
26
27
"k8s.io/apimachinery/pkg/runtime"
27
28
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
28
29
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
@@ -78,7 +79,9 @@ func main() {
78
79
flag .Parse ()
79
80
80
81
log .Init (ServiceName , Version , jsonLog , verbose )
81
- baseLogger := logrusr .New (log .Log , logrusr .WithFormatter (func (i interface {}) interface {} {
82
+ l := log .WithFields (logrus.Fields {})
83
+ l .Logger .SetReportCaller (false )
84
+ baseLogger := logrusr .New (l , logrusr .WithFormatter (func (i interface {}) interface {} {
82
85
return & scrubber.TrustedValueWrap {Value : scrubber .Default .DeepCopyStruct (i )}
83
86
}))
84
87
ctrl .SetLogger (baseLogger )
You can’t perform that action at this time.
0 commit comments