Skip to content

Commit

Permalink
prevent extra prisma logs
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Jan 10, 2024
1 parent cc544d9 commit 4f6927c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/utils/prisma/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4f6927c

Please sign in to comment.