Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

How to stop logging? 😔 #169

Closed
appinteractive opened this issue Jan 8, 2019 · 5 comments
Closed

How to stop logging? 😔 #169

appinteractive opened this issue Jan 8, 2019 · 5 comments

Comments

@appinteractive
Copy link

How is it possible to disable the logging of cypher queries? I know what @johnymontana suggested in #52 but thats only possible in overwritten resolvers.

But how to disable it completely? We need that for production and we CAN NOT LEAVE LOGGIN ON.

I event tried to overwrite the logger in makeExecutableSchema but it does not have any effect of cause.

PLEASE HELP! 😔

@michaeldgraham
Copy link
Collaborator

I'll take a look at this today

@johnymontana
Copy link
Contributor

@appinteractive Now available in v2.2.0 is a debug option in the config object passed to augmentSchema and makeAugmentedSchema. For example:

const augmentedSchema = makeAugmentedSchema({
  typeDefs,
  config: {
    debug: false
  }
});

Could you give it a try?

I haven't added to docs yet, but will include it.

@appinteractive
Copy link
Author

appinteractive commented Jan 9, 2019

@johnymontana sadly its not working with 2.2.0:
grafik
grafik

@appinteractive
Copy link
Author

appinteractive commented Jan 9, 2019

But WAIT: without the config: { it does work!
grafik

@johnymontana you need to change the implementation or the documentation.

@DomVinyard
Copy link

This does not work for me with or without the config

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants