Преглед на файлове

companion,companion-client: remove/add logs accordingly

Ifedapo Olarewaju преди 6 години
родител
ревизия
3afc90baf8
променени са 2 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 0
      packages/@uppy/companion-client/src/RequestClient.js
  2. 0 1
      packages/@uppy/companion/test/__tests__/companion.js

+ 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'
       }