Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
feat: show Web UI url in daemon output
Browse files Browse the repository at this point in the history
- make it easier for people to discover the Web UI
- tidy up inconsistencies across the log lines
- add IPFS to the first line. confirm to new users they started what they expected to.

fixes ipfs/ipfs-webui#815

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
  • Loading branch information
olizilla authored and Alan Shaw committed Oct 19, 2018
1 parent 1461546 commit 0245341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
},

handler (argv) {
print('Initializing daemon...')
print('Initializing IPFS daemon...')

const repoPath = utils.getRepoPath()

Expand Down
5 changes: 3 additions & 2 deletions src/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ function HttpApi (repo, config, cliArgs) {
api.info.ma = uriToMultiaddr(api.info.uri)
gateway.info.ma = uriToMultiaddr(gateway.info.uri)

console.log('API is listening on: %s', api.info.ma)
console.log('Gateway (readonly) is listening on: %s', gateway.info.ma)
console.log('API listening on %s', api.info.ma)
console.log('Gateway (read only) listening on %s', gateway.info.ma)
console.log('Web UI available at %s', api.info.uri + '/webui')

// for the CLI to know the where abouts of the API
this.node._repo.apiAddr.set(api.info.ma, cb)
Expand Down

0 comments on commit 0245341

Please sign in to comment.