Skip to content

Commit

Permalink
refactor: show more lines of stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 20, 2020
1 parent 3ee4936 commit ea31f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.io/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit ea31f50

Please sign in to comment.