mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fixed small bug checking for stack on undefined object
This commit is contained in:
parent
aac8ca0eb0
commit
d0b4563ba0
@ -44,7 +44,7 @@ function formatLogData(logData) {
|
||||
}
|
||||
|
||||
data.forEach(function (item) {
|
||||
if (item.stack) {
|
||||
if (item && item.stack) {
|
||||
output += item.stack;
|
||||
} else {
|
||||
output += util.inspect(item);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user