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

Commit 0245341

Browse files
olizillaAlan Shaw
authored andcommitted
feat: show Web UI url in daemon output
- 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]>
1 parent 1461546 commit 0245341

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/cli/commands/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
},
2929

3030
handler (argv) {
31-
print('Initializing daemon...')
31+
print('Initializing IPFS daemon...')
3232

3333
const repoPath = utils.getRepoPath()
3434

src/http/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ function HttpApi (repo, config, cliArgs) {
155155
api.info.ma = uriToMultiaddr(api.info.uri)
156156
gateway.info.ma = uriToMultiaddr(gateway.info.uri)
157157

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

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

0 commit comments

Comments
 (0)