re: prisma bindings console.log
# orm-help
j
re: prisma bindings console.log
Hello All, Does anyone knows how to disable the console.logs in the prisma binding? I have this set up
Copy code
const prisma = new Prisma({
  typeDefs: `./src/generated/prisma.graphql`,
  endpoint: endpoint(),
  debug: PRISMA_DEBUG,
  secret: PRISMA_MANAGEMENT_API_SECRET
});
the PRIMSA_DEBUG environment variable is set to false and yet i get
Copy code
console.log node_modules/prisma-binding/dist/link.js:50
      {
        "_v0_where": {
          "cognitoSub": "c40201bf-30e0-4e3d-9b07-baf879339198"
        }
      }
    console.log node_modules/prisma-binding/dist/link.js:52
      Response from <http://localhost:4466/test/test>:
    console.log node_modules/prisma-binding/dist/link.js:53
      {
        "user": {
          "email": "<mailto:Blake.Parker22@yahoo.com|Blake.Parker22@yahoo.com>",
          "fullName": "Dudley Kertzmann",
          "cognitoSub": "c40201bf-30e0-4e3d-9b07-baf879339198",
          "id": "cjqshp8j602d809358ni7nnfa",
          "roles": [
            {
              "name": "APP_USER"
            }
          ]
        }
      }
when running tests and running the server
I use GraphQL Yoga and prisma 1.22
also
"prisma-binding": "^2.2.12",
w
have you tried setting debug to
false
without an environment variable?
maybe env vars is “false”, not
false
j
interesting
debug: false,
does it
but the env var is set to a boolean
i’ll check that out. Thanks!