more winston, issue #62

This commit is contained in:
Baris Usakli
2013-08-13 16:00:24 -04:00
parent 1856e394f3
commit dceec0ce46
13 changed files with 43 additions and 51 deletions

View File

@@ -108,7 +108,6 @@ var express = require('express'),
// respond with html page
if (req.accepts('html')) {
//res.json('404', { url: req.url });
res.redirect(global.nconf.get('relative_path') + '/404');
return;
@@ -116,7 +115,6 @@ var express = require('express'),
// respond with json
if (req.accepts('json')) {
console.log('sending 404 json');
res.send({ error: 'Not found' });
return;
}