carousell/Orion

Requests not logged when a custom encoder is used and an error is thrown by the encoder

Closed this issue · 1 comments

Was expecting a log like this for the above case with the error thrown

2017/12/21 09:01:13 method /SSO_proto.SSOService/GetBackendToken error <nil> took 57.53644ms

the issue is request logging takes place in interceptors which run after encoders, let me see if there is a way out