mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 22:13:20 -05:00
Put LoggingManager.initialize back as it was in tests
This commit is contained in:
parent
20f2e1eb1d
commit
ea502a0623
1 changed files with 1 additions and 4 deletions
|
@ -107,21 +107,18 @@ describe('LoggingManager', function () {
|
||||||
describe('in production', function () {
|
describe('in production', function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
process.env.NODE_ENV = 'production'
|
process.env.NODE_ENV = 'production'
|
||||||
|
this.logger = this.LoggingManager.initialize(this.loggerName)
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(() => delete process.env.NODE_ENV)
|
afterEach(() => delete process.env.NODE_ENV)
|
||||||
|
|
||||||
it('should default to log level warn', function () {
|
it('should default to log level warn', function () {
|
||||||
this.logger = this.LoggingManager.initialize(this.loggerName)
|
|
||||||
this.Bunyan.createLogger.firstCall.args[0].streams[0].level.should.equal(
|
this.Bunyan.createLogger.firstCall.args[0].streams[0].level.should.equal(
|
||||||
'warn'
|
'warn'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('logLevelSource file', function () {
|
describe('logLevelSource file', function () {
|
||||||
beforeEach(function() {
|
|
||||||
this.logger = this.LoggingManager.initialize(this.loggerName)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should run checkLogLevel', function () {
|
it('should run checkLogLevel', function () {
|
||||||
this.checkLogLevelStub.should.have.been.calledOnce
|
this.checkLogLevelStub.should.have.been.calledOnce
|
||||||
|
|
Loading…
Reference in a new issue