Christopher Hoskin 6 лет назад
Родитель
Сommit
0a15fedb34

+ 0 - 5
libraries/logger/logging-manager.js

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

+ 0 - 1
libraries/logger/test/unit/loggingManagerTests.js

@@ -446,7 +446,6 @@ describe('LoggingManager', function () {
               beforeEach(async function() {
                 this.bunyanLogger.level.returns(10)
                 //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.Fetch = sinon.stub().resolves(this.fetchResponse)