question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graphql logger options not working

See original GitHub issue

Following the docs for GraphQL logger does not produce the desired results. https://redwoodjs.com/docs/graphql#configure-the-graphql-logger

export const handler = createGraphQLHandler({
  loggerConfig: {
    logger,
    options: {
      tracing: false,
      operationName: true,
      query: false,
      data: false,
    },
  },

However, the query, data, etc. still come through the logs. See repo example here: https://github.com/pi0neerpat/redwood-release-devops-example/blob/graphql-server-logger-troubleshooting/api/src/functions/graphql.js#L10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
dthyressoncommented, Jun 14, 2022

As part of the making rework, have confirmed that options are working as expected.

0reactions
pi0neerpatcommented, Jun 17, 2022

Ok thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metrics and logging - Apollo GraphQL Docs
Sending metrics to GraphOS. Apollo GraphOS provides an integrated hub for all of your GraphQL performance data, which you can view in Apollo...
Read more >
issue while logging graphql info object - Stack Overflow
There is no problem with doing npm start and doing console.log(), if I remove the info parameter everything works well.
Read more >
Troubleshooting - Neo4j GraphQL Library
Debug Logging​​ @neo4j/graphql:auth - Logs the status of authorization header and token extraction, and decoding of JWT. @neo4j/graphql:graphql - Logs the  ...
Read more >
Logging and Debugging – GraphQL Yoga
You can customize the log lovel by passing on of the 4 levels to the logging option:. We recommend not changing the default...
Read more >
Debugging - WPGraphQL
From the WPGraphQL Settings page, check the box labeled “Enable GraphQL Query Logs”. Screenshot of the setting to enable GraphQL Query Logs. Query...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found