Hi,
akka-http sends 400 Bad Request responses automatically for syntactically
broken requests.
How can log these requests in order to analyse the repsective causes?
Jan
--
>> Read the docs: http://akka.io/docs/
>> Check the FAQ:
>> http://doc.akka.io/docs/ak
Hi Jan,
sure!
Here's how:
http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M1/scala/http/routing-dsl/directives/debugging-directives/logRequest.html#logrequest
I recommend implementing the "show", so it shows nicely (and not a raw
bytestring as response body) while you're debugging
Thank you.
However ... are you sure this also captures the 400 responses generated by
akka-http before my own routing directives are hit? Did not seem that way.
I placed the logRequest directive around the outmost one of my routes -
correct? Or is there an even better place?
Jan
On Thursday,