Skip to content

Commit

Permalink
fix: Remove prisma query logs in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-dalmet committed Oct 5, 2023
1 parent 6402dcd commit debb036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const env = createEnv({
EMAIL_SERVER: z.string().url(),
EMAIL_FROM: z.string(),
LOGGER_LEVEL: z
.enum(['debug', 'info', 'warn', 'error', 'fatal'])
.enum(['trace', 'debug', 'info', 'warn', 'error', 'fatal'])
.default(process.env.NODE_ENV === 'production' ? 'error' : 'info'),
LOGGER_PRETTY: z
.enum(['true', 'false'])
Expand Down
3 changes: 2 additions & 1 deletion src/server/config/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const globalForPrisma = globalThis as unknown as {
};

const levels = {
debug: ['query', 'error', 'warn', 'info'],
trace: ['query', 'error', 'warn', 'info'],
debug: ['error', 'warn', 'info'],
info: ['error', 'warn', 'info'],
warn: ['error', 'warn'],
error: ['error'],
Expand Down

1 comment on commit debb036

@vercel
Copy link

@vercel vercel bot commented on debb036 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.