You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many other packages like express also use the same library. So when you initialize debug, you give your debugger a namespace like shown below:
const debug = require('debug')('prisma-client')
and it is shown in the debug output when you enable it via the DEBUG environment variable:
So DEBUG=* enables all the debug loggers and DEBUG=prisma-client only enables the debug output for Prisma namespace. The two major namespaces that we use in the client right now are prisma-client and engine so you can only enable debug output from these using DEBUG=prisma-client,engine.
Also, if you want to force the debug output regardless of the DEBUG env, you can pass the debug option in the Prisma client constructor like so new PrismaClient({ __internal: {debug: true}})
When using Prisma Client, you can set different log levels via the
DEBUG
env var. This needs to be documented. Eg.:DEBUG=prisma-client
orDEBUG=*
The text was updated successfully, but these errors were encountered: