Skip to content

Commit

Permalink
refactor(brave): cleanup
Browse files Browse the repository at this point in the history
- move everything to separate dir
- disable debug ipfs:http-api* logs
  • Loading branch information
lidel committed Sep 11, 2019
1 parent 4eff7b0 commit 38a55a3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process.hrtime = require('browser-process-hrtime')

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

// js-ipfs + embedded hapi HTTP server
let node
Expand Down
2 changes: 1 addition & 1 deletion add-on/src/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.optionDefaults = Object.freeze({
ipfsApiUrl: buildIpfsApiUrl(),
ipfsApiPollMs: 3000,
ipfsProxy: true, // window.ipfs
logNamespaces: 'jsipfs*,ipfs*,libp2p:mdns*,libp2p-delegated*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*'
logNamespaces: 'jsipfs*,ipfs*,libp2p:mdns*,libp2p-delegated*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*,-ipfs:http-api*'
})

function buildCustomGatewayUrl () {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const commonConfig = {
'process.env': {
NODE_ENV: '"production"',
IPFS_MONITORING: false,
DEBUG: true // controls verbosity of Hapi HTTP server in js-ipfs
DEBUG: false // controls verbosity of Hapi HTTP server in js-ipfs
}
})
],
Expand Down

0 comments on commit 38a55a3

Please sign in to comment.