Skip to content

Commit

Permalink
Fix(module-logger): object logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Jan 14, 2024
1 parent c5024dc commit 44497f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/module-logger/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}, "{ ")} }`;
Expand Down

0 comments on commit 44497f2

Please sign in to comment.