mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 22:11:17 +00:00
Merge pull request #7907 from overleaf/em-lower-log-level
Lower the default log level in production to INFO GitOrigin-RevId: 0b7af54809674704535ffff65ebc366c2fa41214
This commit is contained in:
parent
e0d91eaa26
commit
86dabdd73c
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ const LoggingManager = {
|
|||
this.isProduction =
|
||||
(process.env.NODE_ENV || '').toLowerCase() === 'production'
|
||||
this.defaultLevel =
|
||||
process.env.LOG_LEVEL || (this.isProduction ? 'warn' : 'debug')
|
||||
process.env.LOG_LEVEL || (this.isProduction ? 'info' : 'debug')
|
||||
this.loggerName = name
|
||||
this.logger = bunyan.createLogger({
|
||||
name,
|
||||
|
|
|
@ -90,9 +90,9 @@ describe('LoggingManager', function () {
|
|||
delete process.env.NODE_ENV
|
||||
})
|
||||
|
||||
it('should default to log level warn', function () {
|
||||
it('should default to log level info', function () {
|
||||
this.Bunyan.createLogger.firstCall.args[0].streams[0].level.should.equal(
|
||||
'warn'
|
||||
'info'
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue