Reduce logging of unimportant warnings during block import
This commit is contained in:
parent
9ba294da39
commit
3f17333be6
@ -523,10 +523,10 @@ func (d *RocksDB) processAddressesBitcoinType(block *bchain.Block, addresses add
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// do not log ErrAddressMissing, transactions can be without to address (for example eth contracts)
|
// do not log ErrAddressMissing, transactions can be without to address (for example eth contracts)
|
||||||
if err != bchain.ErrAddressMissing {
|
if err != bchain.ErrAddressMissing {
|
||||||
glog.Warningf("rocksdb: addrDesc: %v - height %d, tx %v, output %v", err, block.Height, tx.Txid, output)
|
glog.Warningf("rocksdb: addrDesc: %v - height %d, tx %v, output %v, error %v", err, block.Height, tx.Txid, output, err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
glog.Infof("rocksdb: height %d, tx %v, vout %v, skipping addrDesc of length %d", block.Height, tx.Txid, i, len(addrDesc))
|
glog.V(1).Infof("rocksdb: height %d, tx %v, vout %v, skipping addrDesc of length %d", block.Height, tx.Txid, i, len(addrDesc))
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -609,7 +609,7 @@ func (d *RocksDB) processAddressesBitcoinType(block *bchain.Block, addresses add
|
|||||||
spentOutput.Spent = true
|
spentOutput.Spent = true
|
||||||
if len(spentOutput.AddrDesc) == 0 {
|
if len(spentOutput.AddrDesc) == 0 {
|
||||||
if !logged {
|
if !logged {
|
||||||
glog.Warningf("rocksdb: height %d, tx %v, input tx %v vout %v skipping empty address", block.Height, tx.Txid, input.Txid, input.Vout)
|
glog.V(1).Infof("rocksdb: height %d, tx %v, input tx %v vout %v skipping empty address", block.Height, tx.Txid, input.Txid, input.Vout)
|
||||||
logged = true
|
logged = true
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user