Skip to content

Node.js based forum software built for the modern web

Update topics.js

acardinale8975a0962ea9
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index 4c7708c2ba..1d756b4189 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -268,8 +268,7 @@ topicsController.get = function(req, res, next) {
topics.increaseViewCount(tid);
plugins.fireHook('filter:topic.build', {req: req, res: res, templateData: data}, function(err, data) {
- if (err && process.env === 'development') {
- winston.warn(JSON.stringify(err));
+ if (err) {
return next(err);
}
res.render('topic', data.templateData);