Commit 99499a8e authored by Jeromy's avatar Jeromy

extract logging

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent bfa72bb6
......@@ -12,7 +12,7 @@ import (
key "github.com/ipfs/go-ipfs/blocks/key"
worker "github.com/ipfs/go-ipfs/blockservice/worker"
exchange "github.com/ipfs/go-ipfs/exchange"
u "github.com/ipfs/go-ipfs/util"
logging "github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0"
)
var wc = worker.Config{
......@@ -32,7 +32,7 @@ var wc = worker.Config{
WorkerBufferSize: 0,
}
var log = u.Logger("blockservice")
var log = logging.Logger("blockservice")
var ErrNotFound = errors.New("blockservice: key not found")
// BlockService is a hybrid block datastore. It stores data in a local
......
......@@ -12,10 +12,11 @@ import (
blocks "github.com/ipfs/go-ipfs/blocks"
key "github.com/ipfs/go-ipfs/blocks/key"
exchange "github.com/ipfs/go-ipfs/exchange"
util "github.com/ipfs/go-ipfs/util"
logging "github.com/ipfs/go-ipfs/vendor/go-log-v1.0.0"
)
var log = util.Logger("blockservice")
var log = logging.Logger("blockservice")
var DefaultConfig = Config{
NumWorkers: 1,
......
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