refactor: show more lines of stack trace

This commit is contained in:
Barış Soner Uşaklı
2020-10-19 22:43:18 -04:00
parent 3ee4936db6
commit ea31f50554

View File

@@ -238,5 +238,5 @@ Sockets.warnDeprecated = (socket, replacement) => {
replacement: replacement,
});
}
winston.warn('[deprecated]\n ' + (new Error('-').stack.split('\n').slice(2, 3).join('\n')) + '\n use ' + replacement);
winston.warn('[deprecated]\n ' + (new Error('-').stack.split('\n').slice(2, 5).join('\n')) + '\n use ' + replacement);
};