Skip to content

Commit

Permalink
supplement log with stringified version of StdinData to enhance debug (
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisPeriquet authored Jan 25, 2024
1 parent 1071115 commit 6c982f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/api/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func postRequest(args *skel.CmdArgs) (*Response, string, error) {
var body []byte
body, err = DoCNI("http://dummy/cni", cniRequest, SocketPath(multusShimConfig.MultusSocketDir))
if err != nil {
return nil, multusShimConfig.CNIVersion, err
return nil, multusShimConfig.CNIVersion, fmt.Errorf("%s: StdinData: %s", err.Error(), string(args.StdinData))
}

response := &Response{}
Expand Down

0 comments on commit 6c982f3

Please sign in to comment.