From ced2022273f3a9c233c80acd6c65e6c6806b7c8a Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Tue, 15 Oct 2019 16:25:49 +0300 Subject: [PATCH] storage: change println error for botldb to log --- pkg/core/storage/boltdb_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/core/storage/boltdb_store.go b/pkg/core/storage/boltdb_store.go index e8afd0ded..93a8ae6e9 100644 --- a/pkg/core/storage/boltdb_store.go +++ b/pkg/core/storage/boltdb_store.go @@ -7,6 +7,7 @@ import ( "path" "github.com/etcd-io/bbolt" + log "github.com/sirupsen/logrus" "github.com/syndtr/goleveldb/leveldb/util" ) @@ -110,7 +111,7 @@ func (s *BoltDBStore) Seek(key []byte, f func(k, v []byte)) { return nil }) if err != nil { - fmt.Println("error while executing seek in boltDB") + log.Error("error while executing seek in boltDB") } }