From 8e057e9e7b87247fad40f865a2b3ae783ccb622b Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Thu, 4 Oct 2018 09:19:41 +0200 Subject: [PATCH] Fix incorrect logging formatting directives --- bchain/coins/btc/bitcoinrpc.go | 2 +- blockbook.go | 2 +- db/rocksdb.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bchain/coins/btc/bitcoinrpc.go b/bchain/coins/btc/bitcoinrpc.go index 2e58ab72..4d15330e 100644 --- a/bchain/coins/btc/bitcoinrpc.go +++ b/bchain/coins/btc/bitcoinrpc.go @@ -820,7 +820,7 @@ func safeDecodeResponse(body io.ReadCloser, res interface{}) (err error) { if r := recover(); r != nil { glog.Error("unmarshal json recovered from panic: ", r, "; data: ", string(data)) if len(data) > 0 && len(data) < 2048 { - err = errors.Errorf("Error: ", string(data)) + err = errors.Errorf("Error: %v", string(data)) } else { err = errors.New("Internal error") } diff --git a/blockbook.go b/blockbook.go index 7f501f6b..c45728f7 100644 --- a/blockbook.go +++ b/blockbook.go @@ -505,7 +505,7 @@ func pushSynchronizationHandler(nt bchain.NotificationType) { if atomic.LoadInt32(&inShutdown) != 0 { return } - glog.V(1).Infof("MQ: notification ", nt) + glog.V(1).Info("MQ: notification ", nt) if nt == bchain.NotificationNewBlock { chanSyncIndex <- struct{}{} } else if nt == bchain.NotificationNewTx { diff --git a/db/rocksdb.go b/db/rocksdb.go index dd34c6fa..feaf3d1c 100644 --- a/db/rocksdb.go +++ b/db/rocksdb.go @@ -109,7 +109,7 @@ func (d *RocksDB) Close() error { if d.is != nil && d.is.DbState == common.DbStateOpen { d.is.DbState = common.DbStateClosed if err := d.StoreInternalState(d.is); err != nil { - glog.Infof("internalState: ", err) + glog.Info("internalState: ", err) } } glog.Infof("rocksdb: close")