We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e68220 commit 444a42fCopy full SHA for 444a42f
src/lib/Logger.ts
@@ -59,7 +59,10 @@ class Logger {
59
if (typeof item === 'object' && type === 'error') {
60
log += `\n------Error Stack Begin------\n${util.format(item.stack)}\n-------Error Stack End------- `
61
} else {
62
- log += `${JSON.stringify(item)} `
+ if (typeof item === 'object') {
63
+ item = JSON.stringify(item)
64
+ }
65
+ log += `${item} `
66
}
67
})
68
log += '\n'
0 commit comments