diff --git a/backend/utils/prisma/index.js b/backend/utils/prisma/index.js index 64a63f07..4fd9462b 100644 --- a/backend/utils/prisma/index.js +++ b/backend/utils/prisma/index.js @@ -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;