mirror of
https://github.com/Mintplex-Labs/vector-admin.git
synced 2026-07-01 18:20:51 -04:00
prevent extra prisma logs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user