Remove trivial log

This commit is contained in:
Cheng-Han, Wu 2016-04-20 23:08:37 +08:00
parent f693399c76
commit 13d61fe42d
1 changed files with 0 additions and 1 deletions

1
app.js
View File

@ -153,7 +153,6 @@ passport.deserializeUser(function (id, done) {
app.use(function(req, res, next) { app.use(function(req, res, next) {
if ("GET" == req.method && req.path.substr(-1) == '/' && req.path.length > 1) { if ("GET" == req.method && req.path.substr(-1) == '/' && req.path.length > 1) {
var query = req.url.slice(req.path.length); var query = req.url.slice(req.path.length);
console.log(config.serverurl + req.path.slice(0, -1) + query);
res.redirect(301, config.serverurl + req.path.slice(0, -1) + query); res.redirect(301, config.serverurl + req.path.slice(0, -1) + query);
} else { } else {
next(); next();