The following error is generated while trying to log.WithField cmd variable (of type https://pkg.go.dev/os/exec#Cmd)
Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() error
https://github.com/smart-edge-open/sriov-fec-operator/blob/6be4a1f78d468bd9b07821468c577e8b0873a7be/pkg/daemon/common.go#L29
The issue has started since the Cancel func() error field was added to the Cmd type
The following error is generated while trying to log.WithField cmd variable (of type https://pkg.go.dev/os/exec#Cmd)
Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() errorhttps://github.com/smart-edge-open/sriov-fec-operator/blob/6be4a1f78d468bd9b07821468c577e8b0873a7be/pkg/daemon/common.go#L29
The issue has started since the
Cancel func() errorfield was added to the Cmd type