Skip to content

Commit a7cc0d2

Browse files
committed
refactor(brave): cleanup
- move everything to separate dir - disable debug ipfs:http-api* logs
1 parent ace1939 commit a7cc0d2

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

add-on/src/lib/ipfs-client/embedded-chromesockets.js add-on/src/lib/ipfs-client/embedded-chromesockets/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ process.hrtime = require('browser-process-hrtime')
1717

1818
const Ipfs = require('ipfs')
1919
const HttpApi = require('ipfs/src/http')
20-
const { buildConfig, syncConfig } = require('./chrome-sockets/config')
20+
const { buildConfig, syncConfig } = require('./config')
2121

2222
// js-ipfs + embedded hapi HTTP server
2323
let node

add-on/src/lib/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.optionDefaults = Object.freeze({
2424
ipfsApiUrl: buildIpfsApiUrl(),
2525
ipfsApiPollMs: 3000,
2626
ipfsProxy: true, // window.ipfs
27-
logNamespaces: 'jsipfs*,ipfs*,libp2p:mdns*,libp2p-delegated*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*'
27+
logNamespaces: 'jsipfs*,ipfs*,libp2p:mdns*,libp2p-delegated*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*,-ipfs:http-api*'
2828
})
2929

3030
function buildCustomGatewayUrl () {

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const commonConfig = {
4141
'process.env': {
4242
NODE_ENV: '"production"',
4343
IPFS_MONITORING: false,
44-
DEBUG: true // controls verbosity of Hapi HTTP server in js-ipfs
44+
DEBUG: false // controls verbosity of Hapi HTTP server in js-ipfs
4545
}
4646
})
4747
],

0 commit comments

Comments
 (0)