openrm / hato

A minimalist, customizeable AMQP framework in Node.js
MIT License
1 stars 0 forks source link

Add more infos in error logs for decoding failure #56

Open PuKoren opened 3 years ago

PuKoren commented 3 years ago

@openrm/dev I would like to try adding more infos in this warn log to help debugging a situation where the log is triggered. Currently the error log only states:

[AMQP:encoding] JSON deserialization failed with an exception. Unexpected end of JSON input Value: <Buffer >

With the properties (headers, correlationId, replyTo) I think it would be enough for developers to start investigating.

What do you think?