mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
feat: display stack trace on winston.error
This commit is contained in:
@@ -143,7 +143,7 @@ function markAsRead(req, tid) {
|
||||
if (req.loggedIn) {
|
||||
topics.markAsRead([tid], req.uid, function (err, markedRead) {
|
||||
if (err) {
|
||||
return winston.error(err);
|
||||
return winston.error(err.stack);
|
||||
}
|
||||
if (markedRead) {
|
||||
topics.pushUnreadCount(req.uid);
|
||||
|
||||
Reference in New Issue
Block a user