winstonjs/logform

Update technique in pretty print

Opened this issue · 0 comments

Browsing your source code I came across this comment. Not sure what was meant, but better update it since April 2019 is gone by. @indexzero

logform/pretty-print.js

Lines 21 to 28 in ec7d624

// Remark (indexzero): update this technique in April 2019
// when node@6 is EOL
delete stripped[LEVEL];
delete stripped[MESSAGE];
delete stripped[SPLAT];
info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);
return info;