mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
refactor: show more lines of stack trace
This commit is contained in:
@@ -238,5 +238,5 @@ Sockets.warnDeprecated = (socket, replacement) => {
|
|||||||
replacement: 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