Browse Source

companion,companion-client: remove/add logs accordingly

Ifedapo Olarewaju 5 years ago
parent
commit
3afc90baf8

+ 1 - 0
packages/@uppy/companion-client/src/RequestClient.js

@@ -110,6 +110,7 @@ module.exports = class RequestClient {
           // filter to keep only allowed Headers
           Object.keys(headers).forEach((header) => {
             if (allowedHeaders.indexOf(header.toLowerCase()) === -1) {
+              this.uppy.log(`[CompanionClient] excluding unallowed header ${header}`)
               delete headers[header]
             }
           })

+ 0 - 1
packages/@uppy/companion/test/__tests__/companion.js

@@ -7,7 +7,6 @@ jest.mock('../../src/server/helpers/oauth-state', () => {
     generateState: () => 'some-cool-nice-encrytpion',
     addToState: () => 'some-cool-nice-encrytpion',
     getFromState: (state, key) => {
-      console.log('mummy', state, key)
       if (state === 'state-with-invalid-instance-url') {
         return 'http://localhost:3452'
       }