Browse Source

fix(logging): reduce default log level to info

Reduce our loggers to `info` level by default to reduce the amount of
noise that gets output on the console.
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
f7172d2d97
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 6
      app/utils/log.js

6
app/utils/log.js

@ -7,7 +7,11 @@ debugLogger.inspectOptions = {
// Enable all zap logs if DEBUG has not been explicitly set.
if (!process.env.DEBUG) {
debugLogger.debug.enable('zap:*')
// debugLogger.debug.enable('zap:*')
process.env.DEBUG = 'zap:*'
}
if (!process.env.DEBUG_LEVEL) {
process.env.DEBUG_LEVEL = 'info'
}
// Method to configure a logger instance with a specific namespace suffix.

Loading…
Cancel
Save