diff --git a/src/socket.io/index.js b/src/socket.io/index.js index c3814d9f6c5c..8e5261fd29a7 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -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); };