carousell/Orion

Logs for HTTP requests should have HTTP method type

Closed this issue · 1 comments

For example, an endpoint Login might allow for OPTIONS and POST. At present, Orion logs requests from both methods as

2018/01/23 09:08:37 method /ssoservice/login/ error <nil> took 58.282µs
2018/01/23 09:08:47 method /ssoservice/login/ error Unauthorized took 212.877725ms

There should be something like

2018/01/23 09:08:37 method OPTIONS /ssoservice/login/ error <nil> took 58.282µs
2018/01/23 09:08:47 method POST /ssoservice/login/ error Unauthorized took 212.877725ms

to differentiate the method types.

can can