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 committed Jan 24, 2024
1 parent 6812ce0 commit cad8c09
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 cad8c09

Please sign in to comment.