@@ -53,7 +53,7 @@ func (rr *RouterRequest) UnmarshalJSON(data []byte) error {
53
53
// Additionally, I'm not sure there's a way to cause an error in unit tests when decoding to a
54
54
// json.RawMessage value.
55
55
if err = json .Unmarshal (data , & rrb ); err != nil {
56
- logger .Error (err , "failed to unmarshal body" )
56
+ logger .Error (err , "Failed to unmarshal body" )
57
57
}
58
58
59
59
if len (rrb .Body ) > 0 {
@@ -101,7 +101,7 @@ func (rr *RouterRequest) MarshalJSON() ([]byte, error) {
101
101
jsonBody , err = json .Marshal (rr .Body )
102
102
103
103
if err != nil {
104
- logger .Error (err , "failed to marshal coprocessor request struct: %v" )
104
+ logger .Error (err , "Failed to marshal coprocessor request struct: %v" )
105
105
}
106
106
107
107
routerRequestBodyOverride .Body = string (jsonBody )
@@ -149,7 +149,7 @@ func (rr *RouterResponse) UnmarshalJSON(data []byte) error {
149
149
// Additionally, I'm not sure there's a way to cause an error in unit tests when decoding to a
150
150
// json.RawMessage value.
151
151
if err = json .Unmarshal (data , & rrb ); err != nil {
152
- logger .Error (err , "failed to unmarshal body" )
152
+ logger .Error (err , "Failed to unmarshal body" )
153
153
}
154
154
155
155
if len (rrb .Body ) > 0 {
@@ -198,7 +198,7 @@ func (rr *RouterResponse) MarshalJSON() ([]byte, error) {
198
198
jsonBody , err = json .Marshal (rr .Body )
199
199
200
200
if err != nil {
201
- logger .Error (err , "failed to marshal coprocessor request struct: %v" )
201
+ logger .Error (err , "Failed to marshal coprocessor request struct: %v" )
202
202
}
203
203
204
204
routerRequestBodyOverride .Body = string (jsonBody )
@@ -219,7 +219,7 @@ func handleRouterRequest(httpRequestBody *[]byte) (*RouterRequest, error) {
219
219
requestBody , err := json .Marshal (cr )
220
220
221
221
if err != nil {
222
- logger .Error (err , "failed to marshal coprocessor request struct: %v" )
222
+ logger .Error (err , "Failed to marshal coprocessor request struct: %v" )
223
223
}
224
224
225
225
// This is the object sent by the Router that you can act upon to update headers, context, auth claims, etc
0 commit comments