diff --git a/packages/module-logger/src/index.js b/packages/module-logger/src/index.js index 12c0810..8c12c3c 100644 --- a/packages/module-logger/src/index.js +++ b/packages/module-logger/src/index.js @@ -69,7 +69,7 @@ const _createLogger = () => { return `${[..._defaultKeys, ...Object.keys(info)].reduce((acc, key, i) => { if ((info?.[key] && _defaultKeys.includes(key) && i <= 3) || (i > 3 && !_defaultKeys.includes(key))) { if (i > 0) acc += ", "; - return (acc += `"${chalk.gray(key)}": "${info[key]}"`); + return (acc += `"${chalk.gray(key)}": "${typeof info[key] === 'object' ? JSON.stringify(info[key]) : info[key]}"`); } return acc; }, "{ ")} }`;