We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62edda commit 8a8c3e2Copy full SHA for 8a8c3e2
plugins/cri/runtime/plugin.go
@@ -99,7 +99,9 @@ func initCRIRuntime(ic *plugin.InitContext) (interface{}, error) {
99
StateDir: stateDir,
100
}
101
102
- log.G(ctx).WithFields(log.Fields{"config": fmt.Sprintf("%+v", c)}).Info("starting cri plugin")
+ // Ignoring errors here; this should never fail.
103
+ cfg, _ := json.Marshal(c)
104
+ log.G(ctx).WithFields(log.Fields{"config": string(cfg)}).Info("starting cri plugin")
105
106
if err := setGLogLevel(); err != nil {
107
return nil, fmt.Errorf("failed to set glog level: %w", err)
0 commit comments