Skip to content

Commit

Permalink
KK
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Mar 31, 2024
1 parent 509f576 commit 66fa2d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/plugins/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { PrismaClient } from "@prisma/client"
import { services } from "../services"

export default defineNitroPlugin(async (nuxtApp) => {
services.prisma = new PrismaClient()
services.prisma = new PrismaClient({
log: ['error', 'info', 'query', 'warn']
})
})

0 comments on commit 66fa2d0

Please sign in to comment.