diff --git a/core/commands2/add.go b/core/commands2/add.go index 9b6a3ae73..294b9626f 100644 --- a/core/commands2/add.go +++ b/core/commands2/add.go @@ -49,6 +49,7 @@ var addCmd = &cmds.Command{ return } + // TODO: include fs paths in output (will need a way to specify paths in underlying filearg system) added := make([]*Object, 0, len(req.Arguments())) for _, dagnode := range dagnodes { object, err := getOutput(dagnode) @@ -92,6 +93,8 @@ func add(n *core.IpfsNode, readers []io.Reader) ([]*dag.Node, error) { dagnodes := make([]*dag.Node, 0) + // TODO: allow adding directories (will need support for multiple files in filearg system) + for _, reader := range readers { node, err := importer.BuildDagFromReader(reader, n.DAG, mp, chunk.DefaultSplitter) if err != nil { diff --git a/core/commands2/block.go b/core/commands2/block.go index 1c6fb386c..4e9df7e7d 100644 --- a/core/commands2/block.go +++ b/core/commands2/block.go @@ -94,6 +94,7 @@ It outputs the key of the stored block.`, } b := blocks.NewBlock(data) + log.Debugf("BlockPut key: '%q'", b.Key()) k, err := n.Blocks.AddBlock(b) if err != nil { diff --git a/core/commands2/log.go b/core/commands2/log.go index 742aab526..28d4ab0b5 100644 --- a/core/commands2/log.go +++ b/core/commands2/log.go @@ -27,6 +27,7 @@ output of a running daemon. } s := fmt.Sprintf("Changed log level of '%s' to '%s'", args[0], args[1]) + log.Info(s) res.SetOutput(&MessageOutput{s}) }, Marshallers: map[cmds.EncodingType]cmds.Marshaller{ diff --git a/core/commands2/publish.go b/core/commands2/publish.go index 59c6f9072..37ba749b9 100644 --- a/core/commands2/publish.go +++ b/core/commands2/publish.go @@ -39,6 +39,8 @@ Publish a to another public key: "IPFS path of the obejct to be published at "}, }, Run: func(res cmds.Response, req cmds.Request) { + log.Debug("Begin Publish") + n := req.Context().Node args := req.Arguments()