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 <[email protected]>
  • Loading branch information
olizilla committed Sep 27, 2018
1 parent 549f2f6 commit 3a4b2a9
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 3a4b2a9

Please sign in to comment.