Closed sihu closed 4 years ago
@spape I tried to convert all the Hash-Params of an error to json. Right now i couldn't manage to print out the request.options
, since it causes a stack-level-too-deep-error. But i think my suggested change already improves the situation.
Couldn't we just add JSON (as_json
and/or to_json
) marshaling to Interceptors?
https://github.com/local-ch/lhc/blob/master/lib/lhc/interceptor.rb
MINOR
This PR improves the log-ouput for json-data:
Before:
After:
Reason:
Especially for errors as a developer you might want to copy the failing request and debug it in Postman or similar tools. With the JSON-Syntax this is much easier.