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.
2 parents 7cd7a5c + 8a8c3e2 commit b3dd6e3Copy full SHA for b3dd6e3
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).Infof("Start cri plugin with config %+v", c)
+ // 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