Fix incorrect logging formatting directives
parent
fe0008bf8d
commit
8e057e9e7b
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue