提交 c6797830 作者: Matt Bell 提交者: Juan Batiz-Benet

cmd/ipfs: Log to show API server is listening

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论