-
Notifications
You must be signed in to change notification settings - Fork 275
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
better logging documentation #1646
Comments
JSON logging activates automatically if the router is not running under a tty (so not started from an interactive terminal). To see the full errors, I thin you need this: https://www.apollographql.com/docs/router/configuration/subgraph-error-inclusion |
hmm... maybe it should be another issue, but I'd like to be able to change to basic logging directly. Running router in docker in a local development environment doesn't mean I want to read json. |
Also, I'm not sure if I want to propagate or not, but this error is kind of not useful in the logs, and hard to read because I"m not a machine ;)
|
actually a little easier to read on here because my terminal isn't wrapping it... still doesn't appear to contain useful information though. I'm not sure if that's because the other server isn't returning any or what. |
did you activate the option from : https://www.apollographql.com/docs/router/configuration/subgraph-error-inclusion ? it should replace the |
yes, I did (I think), and yes it's giving a 404... something is wrong in my DGS server, but that's a different problem. fetch failed isn't very useful. Trying to read these logs in docker compose is hard.
the debug log is a little more useful |
One of the selling points of using this rust router is supposed to be a great out of the box experience. (Paraphrasing your teams presentation at your GraphQL conference). But it's not. Here are a few points.
|
Describe the solution you'd like
Logging says there are 2 kinds of logging, basic and json. I can't find anything on how to configure this. I've also been looking for a way to log the full error even if the server doesn't emit it, and I can't find that either.
The text was updated successfully, but these errors were encountered: