diff --git a/app/utils/Logger.ts b/app/utils/Logger.ts index 95426cf..87b9a64 100644 --- a/app/utils/Logger.ts +++ b/app/utils/Logger.ts @@ -16,6 +16,11 @@ const shortenStringsInObject = (obj, maxLength) => { // Rút ngắn chuỗi lại maxLength ký tự obj[key] = obj[key].substring(0, maxLength); } + + if (Array.isArray(obj[key]) && obj[key].length > 20) { + // Rút ngắn chuỗi lại maxLength ký tự + obj[key] = obj[key].slice(0,20) + } } }