From 22a4cc7d30a67b1743d1ba847005d139e825a22e Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Wed, 12 Nov 2014 05:07:17 -0800 Subject: [PATCH] fix(ipfs2) output info to logger when checking daemon status --- cmd/ipfs2/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/ipfs2/main.go b/cmd/ipfs2/main.go index 33a0eee86..97927aa47 100644 --- a/cmd/ipfs2/main.go +++ b/cmd/ipfs2/main.go @@ -212,6 +212,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) { remote := !found || !local + log.Info("Checking if daemon is running...") if remote && daemon.Locked(req.Context().ConfigRoot) { addr, err := ma.NewMultiaddr(req.Context().Config.Addresses.API) if err != nil { @@ -231,6 +232,7 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) { } } else { + log.Info("Executing command locally: daemon not running") node, err := core.NewIpfsNode(req.Context().Config, false) if err != nil { return nil, err