[misc] downgrade logging when running tests

This commit is contained in:
Jakob Ackermann 2020-06-05 11:38:09 +01:00
parent 6b892e33c0
commit f40241a037
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,4 @@
app = require('../../../../app')
require("logger-sharelatex").logger.level("info")
logger = require("logger-sharelatex")
Settings = require("settings-sharelatex")
@ -21,4 +20,4 @@ module.exports =
logger.log("clsi running in dev mode")
for callback in @callbacks
callback()
callback()

View file

@ -12,6 +12,7 @@ describe 'ChannelManager', ->
@ChannelManager = SandboxedModule.require modulePath, requires:
"settings-sharelatex": @settings = {}
"metrics-sharelatex": @metrics = {inc: sinon.stub(), summary: sinon.stub()}
"logger-sharelatex": @logger = { log: sinon.stub(), warn: sinon.stub(), error: sinon.stub() }
describe "subscribe", ->