We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad35c4 commit 5b4a80bCopy full SHA for 5b4a80b
src/index.ts
@@ -22,15 +22,15 @@ export function fieldEncryptionMiddleware(
22
const encryptionConfig = configureEncryption(params, fields)
23
24
const logger =
25
- process.env.PRISMA_FIELD_ENCRYPTION_LOG === 'false'
26
- ? {
+ process.env.PRISMA_FIELD_ENCRYPTION_LOG === 'true'
+ ? console
27
+ : {
28
log: (_args: any) => {},
29
info: (_args: any) => {},
30
dir: (_args: any) => {},
31
error: console.error, // Still log errors
32
warn: console.warn // and warnings
33
}
- : console
34
35
const operation = `${params.model}.${params.action}`
36
0 commit comments