MechanicalHuman / dev-bunyan-pretty

Pretty format for Bunyan/Pino logs, similar to `bunyan -o short` but actually pretty.
MIT License
6 stars 4 forks source link

Update head-formatter.js #10

Open numso opened 4 years ago

numso commented 4 years ago

I'm seeing some weird behavior where my messages get output twice. For example, when trying to log out "Starting server" I instead see "Starting server 0 Starting server". Looks like messages.map(white) is the problem. It is the equivalent of writing messages.map((item, index, array) => white(item, index, array)) where instead we just want to be colorizing the item.