TomFrost / Bristol

Insanely configurable logging for Node.js
MIT License
113 stars 19 forks source link

Fix invalid handling of dates (#47) #48

Closed jeffijoe closed 6 years ago

jeffijoe commented 6 years ago

Fixes #47 by checking whether the element is instanceof Date.

The problem was that typeof elem would be object for Dates, which Bristol would then attempt to merge.

TomFrost commented 6 years ago

What a great catch-- released in 0.4.0. Thanks!