Commit c6797830 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

cmd/ipfs: Log to show API server is listening

parent 0b73a48b
......@@ -45,11 +45,12 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
handler := cmdsHttp.Handler{*ctx}
http.Handle(cmdsHttp.ApiPath+"/", handler)
fmt.Printf("API server listening on '%s'\n", host)
err = http.ListenAndServe(host, nil)
if err != nil {
res.SetError(err, cmds.ErrNormal)
return
}
// TODO: log to indicate that we are now listening
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment