diff --git a/src/env.mjs b/src/env.mjs index e1dfaeb92..43bf144be 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -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']) diff --git a/src/server/config/db.ts b/src/server/config/db.ts index 2eccdf6cc..df99efaa9 100644 --- a/src/server/config/db.ts +++ b/src/server/config/db.ts @@ -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'],