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, November 26, 2015 at 10:35:18 AM UTC+1, Konrad Malawski wrote:
>
> 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.
>
> -- 
> Cheers,
> Konrad 'ktoso’ Malawski
> Akka <http://akka.io> @ Typesafe <http://typesafe.com>
>
> On 26 November 2015 at 08:35:53, Jan Algermissen (algermi...@me.com 
> <javascript:>) wrote:
>
> 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/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to akka-user+...@googlegroups.com <javascript:>.
> To post to this group, send email to akka...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to