From 4f6927cdcc12f0005baabfee30affef01f20a188 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 10 Jan 2024 13:57:06 -0800 Subject: [PATCH] prevent extra prisma logs --- backend/utils/prisma/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;