瀏覽代碼

Remove debug code and turn off logs

Ben Hsieh 8 年之前
父節點
當前提交
b6d375b4ac
共有 2 個檔案被更改,包括 5 行新增6 行删除
  1. 2
    3
      polyfill/Blob.js
  2. 3
    3
      polyfill/Fetch.js

+ 2
- 3
polyfill/Blob.js 查看文件

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.disable()
15
-log.level(3)
14
+log.disable()
15
+// log.level(3)
16
 
16
 
17
 /**
17
 /**
18
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to
18
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to
342
       return fs.appendFile(...arg)
342
       return fs.appendFile(...arg)
343
     }.bind(args[i]))
343
     }.bind(args[i]))
344
   }
344
   }
345
-  console.log('###ref', ref)
346
   return p.then(() => Promise.resolve(size))
345
   return p.then(() => Promise.resolve(size))
347
 }
346
 }

+ 3
- 3
polyfill/Fetch.js 查看文件

6
 
6
 
7
 const log = new Log('FetchPolyfill')
7
 const log = new Log('FetchPolyfill')
8
 
8
 
9
-// log.disable()
10
-log.level(3)
9
+log.disable()
10
+// log.level(3)
11
 
11
 
12
 export default class Fetch {
12
 export default class Fetch {
13
 
13
 
67
         log.verbose('response', resp)
67
         log.verbose('response', resp)
68
         // release blob cache created when sending request
68
         // release blob cache created when sending request
69
         if(blobCache !== null && blobCache instanceof Blob)
69
         if(blobCache !== null && blobCache instanceof Blob)
70
-          // blobCache.close()
70
+          blobCache.close()
71
         return Promise.resolve(new RNFetchBlobFetchRepsonse(resp))
71
         return Promise.resolve(new RNFetchBlobFetchRepsonse(resp))
72
       })
72
       })
73
 
73