Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientMiddlware won't log on response error #36

Open
ramonmaruko opened this issue Sep 19, 2023 · 0 comments
Open

ClientMiddlware won't log on response error #36

ramonmaruko opened this issue Sep 19, 2023 · 0 comments

Comments

@ramonmaruko
Copy link

I have a project that replicates this error. It's just the http4s quickstart application but with the ClientMiddleware added for Jokes' HttpClient. I have changed the Jokes endpoint to https://google.com so that it'll throw a decoding error.

I expect when I call the endpoint i.e.:

curl http://localhost:8080/joke

that the server log will contain the log message from ClientMiddleware.

Instead I only get:

INFO o.h.s.m.Logger - [] service raised an error: class com.example.quickstart.Jokes$JokeError

with no context e.g. response body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant