chore: refactor a little more

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-12 12:37:05 +02:00
parent 510d0f2a8d
commit 8e60a63364
@@ -128,12 +128,6 @@ export class WinstonLogger implements RootLoggerService {
obj[MESSAGE] = obj[MESSAGE]?.replace?.(redactionPattern, '***');
if (obj[SPLAT]) {
obj[SPLAT] = JSON.parse(
JSON.stringify(obj[SPLAT]).replace(redactionPattern, '***'),
);
}
return obj;
})(),
add(newRedactions) {