@cryptotaxi247 / kubo / commits / 22a4cc7d3

fix(ipfs2) output info to logger when checking daemon status

Brian Tiger Chow committed Nov 12, 2014 at 05:07 UTC 22a4cc7d30a67b1743d1ba847005d139e825a22e
1 file changed +2
cmd/ipfs2/main.go
+2
@@ -212,6 +212,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
212
213 remote := !found || !local
214
215 + log.Info("Checking if daemon is running...")
216 if remote && daemon.Locked(req.Context().ConfigRoot) {
217 addr, err := ma.NewMultiaddr(req.Context().Config.Addresses.API)
218 if err != nil {
@@ -231,6 +232,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
232 }
233
234 } else {
235 + log.Info("Executing command locally: daemon not running")
236 node, err := core.NewIpfsNode(req.Context().Config, false)
237 if err != nil {
238 return nil, err