This commit is contained in:
2024-10-11 17:11:47 +07:00
parent 9023725fc4
commit 85026556b2
17 changed files with 794 additions and 92 deletions

View File

@@ -12,7 +12,24 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
constructor() {
super({
log: ['query', 'info', 'warn', 'error'],
log: [
{
emit: 'event',
level: 'query',
},
{
emit: 'stdout',
level: 'error',
},
{
emit: 'event',
level: 'info',
},
{
emit: 'stdout',
level: 'warn',
},
],
});
}