@cryptotaxi247 / kubo / commits / 8d6f2ed0b

chore(main) move logging statement to more appropriate place

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 27, 2014 at 17:06 UTC 8d6f2ed0bc9c06274ef32e4915502f632ae56d99
1 file changed +2 -2
cmd/ipfs/main.go
+2 -2
@@ -21,11 +21,11 @@ import (
21 config "github.com/jbenet/go-ipfs/config"
22 core "github.com/jbenet/go-ipfs/core"
23 daemon "github.com/jbenet/go-ipfs/core/daemon"
24 + repo "github.com/jbenet/go-ipfs/repo"
25 updates "github.com/jbenet/go-ipfs/updates"
26 u "github.com/jbenet/go-ipfs/util"
27 "github.com/jbenet/go-ipfs/util/debugerror"
28 eventlog "github.com/jbenet/go-ipfs/util/eventlog"
28 - repo "github.com/jbenet/go-ipfs/repo"
29 )
30
31 // log is the command logger
@@ -295,6 +295,7 @@ func callCommand(ctx context.Context, req cmds.Request, root *cmds.Command) (cmd
295 return nil, err
296 }
297
298 + log.Info("looking for running daemon...")
299 useDaemon, err := commandShouldRunOnDaemon(*details, req, root)
300 if err != nil {
301 return nil, err
@@ -383,7 +384,6 @@ func commandShouldRunOnDaemon(details cmdDetails, req cmds.Request, root *cmds.C
384 return false, nil
385 }
386
386 - log.Info("looking for running daemon...")
387 // at this point need to know whether daemon is running. we defer
388 // to this point so that some commands dont open files unnecessarily.
389 daemonLocked := daemon.Locked(req.Context().ConfigRoot)