mirror of https://github.com/Chocobozzz/PeerTube
Avoid too large cert error messages
parent
fc41887463
commit
a9d4c3c8ca
|
@ -18,6 +18,8 @@ function getLoggerReplacer () {
|
|||
|
||||
// Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value#Examples
|
||||
return (key: string, value: any) => {
|
||||
if (key === 'cert') return 'Replaced by the logger to avoid large log message'
|
||||
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
if (seen.has(value)) return
|
||||
|
||||
|
|
Loading…
Reference in New Issue