Remove debug logs

This commit is contained in:
Christopher Hoskin 2020-07-23 17:10:09 +01:00
parent 02356c7f27
commit 0a15fedb34
2 changed files with 0 additions and 6 deletions

View file

@ -69,17 +69,12 @@ async checkLogLevelMetadata() {
const res = await fetch(uri,options) const res = await fetch(uri,options)
if (!res.ok) throw new Error("Metadata not okay") if (!res.ok) throw new Error("Metadata not okay")
const body = await res.text() const body = await res.text()
console.log("About to parse Int", body)
if (parseInt(body) > Date.now()) { if (parseInt(body) > Date.now()) {
console.log("About to set logger level to trace")
console.log(this.logger)
this.logger.level('trace') this.logger.level('trace')
} else { } else {
console.log("About to set logger level to default")
this.logger.level(this.defaultLevel) this.logger.level(this.defaultLevel)
} }
} catch (err) { } catch (err) {
console.log("ERROR: About to set logger level to default")
this.logger.level(this.defaultLevel) this.logger.level(this.defaultLevel)
return return
} }

View file

@ -446,7 +446,6 @@ describe('LoggingManager', function () {
beforeEach(async function() { beforeEach(async function() {
this.bunyanLogger.level.returns(10) this.bunyanLogger.level.returns(10)
//this.Request.yields(null, { statusCode: 200 }, this.start + 1000) //this.Request.yields(null, { statusCode: 200 }, this.start + 1000)
console.log("In test ", this.start + 1000)
this.fetchResponse.text = sinon.stub().resolves(this.start + 1000) this.fetchResponse.text = sinon.stub().resolves(this.start + 1000)
//this.Fetch = sinon.stub().resolves(this.fetchResponse) //this.Fetch = sinon.stub().resolves(this.fetchResponse)