Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

disabled query logging as default

jlssmtce1aa5a0ec34
diff --git a/lib/api/db.ts b/lib/api/db.ts
index 01c4c7dc..8a8709d9 100644
--- a/lib/api/db.ts
+++ b/lib/api/db.ts
@@ -5,7 +5,7 @@ const globalForPrisma = global as unknown as { prisma: PrismaClient };
export const prisma =
globalForPrisma.prisma ||
new PrismaClient({
- log: ["query"],
+ log: process.env.DEBUG === "true" ? ["query", "info", "warn", "error"] : ["warn", "error"]
});
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;