Only log request paths, not search strings
This commit is contained in:
parent
8e1b8edca7
commit
277e938884
|
@ -16,7 +16,7 @@ const requestLogging = (redisURL) => {
|
||||||
return (req, res, next) => {
|
return (req, res, next) => {
|
||||||
onFinished(res, () => {
|
onFinished(res, () => {
|
||||||
if (res.statusCode === 200)
|
if (res.statusCode === 200)
|
||||||
redisClient.incr(req.url)
|
redisClient.incr(req.path)
|
||||||
})
|
})
|
||||||
|
|
||||||
next()
|
next()
|
||||||
|
|
Loading…
Reference in New Issue