You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be human.js#L68 where you check for string [object Object] while the string coming from toString() is like [object Object],[object Object],....
Using util.inspect works fine, and is my current workaround ( I defined a custom formatter with only that line changed ). There is some specific reason why has not been used util.inspect? There is some other way in which I can resolve this issue ( apart from stringifing the content before loggin in)?
Thank you for this library and you support :)
The text was updated successfully, but these errors were encountered:
kgraves
added a commit
to kgraves/Bristol
that referenced
this issue
Oct 9, 2015
I've found a wrong behaviour when logging arrays.
I'm logging an object like this:
Using the
human
formatter the object is printed this way:The problem seems to be human.js#L68 where you check for string
[object Object]
while the string coming fromtoString()
is like[object Object],[object Object],...
.Using
util.inspect
works fine, and is my current workaround ( I defined a custom formatter with only that line changed ). There is some specific reason why has not been usedutil.inspect
? There is some other way in which I can resolve this issue ( apart from stringifing the content before loggin in)?Thank you for this library and you support :)
The text was updated successfully, but these errors were encountered: