Fix incorrect logging formatting directives
This commit is contained in:
parent
fe0008bf8d
commit
8e057e9e7b
@ -820,7 +820,7 @@ func safeDecodeResponse(body io.ReadCloser, res interface{}) (err error) {
|
|||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
glog.Error("unmarshal json recovered from panic: ", r, "; data: ", string(data))
|
glog.Error("unmarshal json recovered from panic: ", r, "; data: ", string(data))
|
||||||
if len(data) > 0 && len(data) < 2048 {
|
if len(data) > 0 && len(data) < 2048 {
|
||||||
err = errors.Errorf("Error: ", string(data))
|
err = errors.Errorf("Error: %v", string(data))
|
||||||
} else {
|
} else {
|
||||||
err = errors.New("Internal error")
|
err = errors.New("Internal error")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -505,7 +505,7 @@ func pushSynchronizationHandler(nt bchain.NotificationType) {
|
|||||||
if atomic.LoadInt32(&inShutdown) != 0 {
|
if atomic.LoadInt32(&inShutdown) != 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
glog.V(1).Infof("MQ: notification ", nt)
|
glog.V(1).Info("MQ: notification ", nt)
|
||||||
if nt == bchain.NotificationNewBlock {
|
if nt == bchain.NotificationNewBlock {
|
||||||
chanSyncIndex <- struct{}{}
|
chanSyncIndex <- struct{}{}
|
||||||
} else if nt == bchain.NotificationNewTx {
|
} else if nt == bchain.NotificationNewTx {
|
||||||
|
|||||||
@ -109,7 +109,7 @@ func (d *RocksDB) Close() error {
|
|||||||
if d.is != nil && d.is.DbState == common.DbStateOpen {
|
if d.is != nil && d.is.DbState == common.DbStateOpen {
|
||||||
d.is.DbState = common.DbStateClosed
|
d.is.DbState = common.DbStateClosed
|
||||||
if err := d.StoreInternalState(d.is); err != nil {
|
if err := d.StoreInternalState(d.is); err != nil {
|
||||||
glog.Infof("internalState: ", err)
|
glog.Info("internalState: ", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
glog.Infof("rocksdb: close")
|
glog.Infof("rocksdb: close")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user