Browse Source

disable Web API logs

Ben Hsieh 8 years ago
parent
commit
68d7eb826a
3 changed files with 4 additions and 2 deletions
  1. 1
    1
      src/polyfill/Blob.js
  2. 2
    0
      src/polyfill/EventTarget.js
  3. 1
    1
      src/polyfill/XMLHttpRequest.js

+ 1
- 1
src/polyfill/Blob.js View File

11
 const log = new Log('Blob')
11
 const log = new Log('Blob')
12
 const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
12
 const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
13
 
13
 
14
-log.level(3)
14
+log.disable()
15
 
15
 
16
 /**
16
 /**
17
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to
17
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to

+ 2
- 0
src/polyfill/EventTarget.js View File

6
 
6
 
7
 const log = new Log('EventTarget')
7
 const log = new Log('EventTarget')
8
 
8
 
9
+log.disable()
10
+
9
 export default class EventTarget {
11
 export default class EventTarget {
10
 
12
 
11
   listeners : any;
13
   listeners : any;

+ 1
- 1
src/polyfill/XMLHttpRequest.js View File

10
 
10
 
11
 const log = new Log('XMLHttpRequest')
11
 const log = new Log('XMLHttpRequest')
12
 
12
 
13
-log.level(3)
13
+log.disable()
14
 
14
 
15
 const UNSENT = 0
15
 const UNSENT = 0
16
 const OPENED = 1
16
 const OPENED = 1