Browse Source

Merge pull request #531 from mrfelton/fix/reduce-default-log-level

Reduce default log level to info to reduce terminal noise
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
c8af6898f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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