old faithful logs
This commit is contained in:
1 parent
e72b78fec1
commit
7657dc6769
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -18,7 +18,7 @@
|
||||
"ethers": "^5.8.0",
|
||||
"express": "^5.2.1",
|
||||
"simple-oauth2": "^5.1.0",
|
||||
"tslog": "^5.4.0"
|
||||
"tslog": "4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.17",
|
||||
|
||||
+3
-1
@@ -8,5 +8,7 @@ import { Logger } from 'tslog';
|
||||
export const log = new Logger({
|
||||
name: 'zkpix',
|
||||
minLevel: /^(1|true)$/i.test(process.env.DEBUG ?? '') ? 'DEBUG' : 'FATAL',
|
||||
mask: { keys: ['Authorization', 'authorization', 'gw-dev-app-key'], placeholder: '…' },
|
||||
maskValuesOfKeys: ['authorization', 'gw-dev-app-key'],
|
||||
maskValuesOfKeysCaseInsensitive: true,
|
||||
maskPlaceholder: '…',
|
||||
});
|
||||
Reference in new issue
Block a user