Commit 7a150b00 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

logs: removed all log.Errors unhelpful to users

Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
parent 09e47db6
...@@ -136,7 +136,7 @@ func FetchGraph(ctx context.Context, root *Node, serv DAGService) chan struct{} ...@@ -136,7 +136,7 @@ func FetchGraph(ctx context.Context, root *Node, serv DAGService) chan struct{}
nd, err := lnk.GetNode(serv) nd, err := lnk.GetNode(serv)
if err != nil { if err != nil {
log.Error(err) log.Debug(err)
return return
} }
...@@ -199,7 +199,7 @@ func (ds *dagService) GetNodes(ctx context.Context, keys []u.Key) []NodeGetter { ...@@ -199,7 +199,7 @@ func (ds *dagService) GetNodes(ctx context.Context, keys []u.Key) []NodeGetter {
nd, err := Decoded(blk.Data) nd, err := Decoded(blk.Data)
if err != nil { if err != nil {
// NB: can happen with improperly formatted input data // NB: can happen with improperly formatted input data
log.Error("Got back bad block!") log.Debug("Got back bad block!")
return return
} }
is := FindLinks(keys, blk.Key(), 0) is := FindLinks(keys, blk.Key(), 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment