Skip to content

Commit

Permalink
Merge pull request #5952 from Bargs/feature/logRequestEvents
Browse files Browse the repository at this point in the history
Log all request events by default and request error events in quiet mode
  • Loading branch information
Matt Bargar committed Jan 22, 2016
2 parents d1b31b3 + 3c59948 commit 92f210f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/logging/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = function (kbnServer, server, config) {
else if (config.get('logging.quiet')) {
_.defaults(events, {
log: ['listening', 'error', 'fatal'],
request: ['error'],
error: '*'
});
}
Expand All @@ -30,6 +31,7 @@ module.exports = function (kbnServer, server, config) {
_.defaults(events, {
log: ['info', 'warning', 'error', 'fatal'],
response: config.get('logging.json') ? '*' : '!',
request: ['info', 'warning', 'error', 'fatal'],
error: '*'
});
}
Expand Down

0 comments on commit 92f210f

Please sign in to comment.