Remove string filtering in logger

This commit is contained in:
Tom Moor committed 2024-10-17 22:46:11 -04:00
1 parent 4ac31eec2e
commit 8635e66d48
1 file changed
-7
-7
View File
@@ -4,7 +4,6 @@ import chalk from "chalk";
import isArray from "lodash/isArray";
import isEmpty from "lodash/isEmpty";
import isObject from "lodash/isObject";
import isString from "lodash/isString";
import winston from "winston";
import env from "@server/env";
import Metrics from "@server/logging/Metrics";
@@ -226,12 +225,6 @@ class Logger {
return "[…]" as any as T;
}
if (isString(input)) {
if (sensitiveFields.some((field) => input.includes(field))) {
return "[Filtered]" as any as T;
}
}
if (isArray(input)) {
return input.map((item) => this.sanitize(item, level + 1)) as any as T;
}