mod if nolog
This commit is contained in:
parent
c7d3ac4fe1
commit
b5bc9c8322
@ -46,7 +46,7 @@ function getLogger(logger4js, options) {
|
||||
if (req._logging) return next();
|
||||
|
||||
// nologs
|
||||
if(nolog.test(req.url)) return next();
|
||||
if(nolog && nolog.test(req.url)) return next();
|
||||
|
||||
if (thislogger.isLevelEnabled(level)) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user