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,7 +11,7 @@ import EventTarget from './EventTarget'
11 11
 const log = new Log('Blob')
12 12
 const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
13 13
 
14
-log.level(3)
14
+log.disable()
15 15
 
16 16
 /**
17 17
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to

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

@@ -6,6 +6,8 @@ import Log from '../utils/log.js'
6 6
 
7 7
 const log = new Log('EventTarget')
8 8
 
9
+log.disable()
10
+
9 11
 export default class EventTarget {
10 12
 
11 13
   listeners : any;

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

@@ -10,7 +10,7 @@ import ProgressEvent from './ProgressEvent.js'
10 10
 
11 11
 const log = new Log('XMLHttpRequest')
12 12
 
13
-log.level(3)
13
+log.disable()
14 14
 
15 15
 const UNSENT = 0
16 16
 const OPENED = 1