diff options
Diffstat (limited to 'server/helpers/logger.ts')
-rw-r--r-- | server/helpers/logger.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 9553f70e8..a4bd41427 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts | |||
@@ -18,6 +18,8 @@ function getLoggerReplacer () { | |||
18 | 18 | ||
19 | // Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value#Examples | 19 | // Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value#Examples |
20 | return (key: string, value: any) => { | 20 | return (key: string, value: any) => { |
21 | if (key === 'cert') return 'Replaced by the logger to avoid large log message' | ||
22 | |||
21 | if (typeof value === 'object' && value !== null) { | 23 | if (typeof value === 'object' && value !== null) { |
22 | if (seen.has(value)) return | 24 | if (seen.has(value)) return |
23 | 25 | ||