@cryptotaxi247 / kubo / commits / c67978308

cmd/ipfs: Log to show API server is listening

Matt Bell committed Oct 27, 2014 at 18:35 UTC c67978308453cc83f876af5fe633bae35a0bbc25
1 file changed +3 -2
cmd/ipfs/daemon.go
+3 -2
@@ -45,11 +45,12 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
45
46 handler := cmdsHttp.Handler{*ctx}
47 http.Handle(cmdsHttp.ApiPath+"/", handler)
48 +
49 + fmt.Printf("API server listening on '%s'\n", host)
50 +
51 err = http.ListenAndServe(host, nil)
52 if err != nil {
53 res.SetError(err, cmds.ErrNormal)
54 return
55 }
53 - // TODO: log to indicate that we are now listening
54 -
56 }