mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: show more lines of stack trace
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user