Ivan Socolsky
9 years ago
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with
8 additions and
3 deletions
-
lib/expressapp.js
|
|
@ -65,9 +65,14 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
return req.copayerId |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.app.use(morgan(' :remote-addr :date[iso] ":method :url" :status :res[content-length] :response-time ":user-agent" :walletId :copayerId')); |
|
|
|
var logFormat = ':remote-addr :date[iso] ":method :url" :status :res[content-length] :response-time ":user-agent" :walletId :copayerId'; |
|
|
|
var logOpts = { |
|
|
|
skip: function(req, res) { |
|
|
|
if (res.statusCode != 200) return false; |
|
|
|
return req.path.indexOf('/notifications/') >= 0; |
|
|
|
} |
|
|
|
}; |
|
|
|
this.app.use(morgan(logFormat, logOpts)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|