1
0
mirror of synced 2025-12-19 18:11:23 -05:00

fix blitz logging to respect FORCE_COLOR=0 (#3157)

(patch)
This commit is contained in:
Brandon Bayer
2022-02-09 06:40:12 -05:00
committed by GitHub
parent d25aee1313
commit 600467035a

View File

@@ -62,6 +62,7 @@ export const baseLogger = (options?: ISettingsParam): Logger => {
bigint: 'blue',
boolean: 'blue',
},
colorizePrettyLogs: process.env.FORCE_COLOR === '0' ? false : true,
maskValuesOfKeys: ['password', 'passwordConfirmation'],
exposeErrorCodeFrame: process.env.NODE_ENV !== 'production',
...options,