prevent extra prisma logs

This commit is contained in:
timothycarambat
2024-01-10 13:57:06 -08:00
parent cc544d938d
commit 4f6927cdcc
+2 -1
View File
@@ -5,8 +5,9 @@ const { PrismaClient } = require("@prisma/client");
// npx prisma migrate dev --name init -> ensures that db is in sync with schema
// npx prisma migrate reset -> resets the db
const logLevels = ["error", "info", "warn"]; // add "query" to debug query logs
const prisma = new PrismaClient({
log: ["query", "info", "warn"],
log: logLevels,
});
module.exports = prisma;