|
|
@ -19,7 +19,7 @@ module.exports.middleware = function( req, res, next ){ |
|
|
|
// log the query that caused a fallback since libpostal+new-queries didn't return anything
|
|
|
|
// log the query that caused a fallback since libpostal+new-queries didn't return anything
|
|
|
|
if (req.path === '/v1/search') { |
|
|
|
if (req.path === '/v1/search') { |
|
|
|
var queryText = logging.isDNT(req) ? '[text removed]' : req.clean.text; |
|
|
|
var queryText = logging.isDNT(req) ? '[text removed]' : req.clean.text; |
|
|
|
logger.info(queryText); |
|
|
|
// logger.info(queryText);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sanitize( req, function( err, clean ){ |
|
|
|
sanitize( req, function( err, clean ){ |
|
|
|