diff --git a/bchain/coins/eth/ethrpc.go b/bchain/coins/eth/ethrpc.go index 001a199c..986ec999 100644 --- a/bchain/coins/eth/ethrpc.go +++ b/bchain/coins/eth/ethrpc.go @@ -544,7 +544,7 @@ func (b *EthereumRPC) processEventsForBlock(blockNumber string) (map[string][]*b "toBlock": blockNumber, }) if err != nil { - return nil, nil, errors.Annotatef(err, "blockNumber %v", blockNumber) + return nil, nil, errors.Annotatef(err, "eth_getLogs blockNumber %v", blockNumber) } r := make(map[string][]*bchain.RpcLog) for i := range logs { @@ -708,7 +708,7 @@ func (b *EthereumRPC) GetBlock(hash string, height uint32) (*bchain.Block, error blockSpecificData = &bchain.EthereumBlockSpecificData{} if err != nil { blockSpecificData.InternalDataError = err.Error() - glog.Info("InternalDataError ", bbh.Height, ": ", err.Error()) + // glog.Info("InternalDataError ", bbh.Height, ": ", err.Error()) } if len(ens) > 0 { blockSpecificData.AddressAliasRecords = ens diff --git a/blockbook.go b/blockbook.go index 37db2527..7782c1a0 100644 --- a/blockbook.go +++ b/blockbook.go @@ -583,7 +583,9 @@ func storeInternalStateLoop() { glog.Error("storeInternalStateLoop ", errors.ErrorStack(err)) } if lastAppInfo.Add(logAppInfoPeriod).Before(time.Now()) { - glog.Info(index.GetMemoryStats()) + if glog.V(1) { + glog.Info(index.GetMemoryStats()) + } if err := blockbookAppInfoMetric(index, chain, txCache, internalState, metrics); err != nil { glog.Error("blockbookAppInfoMetric ", err) } diff --git a/db/sync.go b/db/sync.go index 823ec9aa..f04512ec 100644 --- a/db/sync.go +++ b/db/sync.go @@ -386,7 +386,9 @@ ConnectLoop: start = time.Now() } if msTime.Before(time.Now()) { - glog.Info(w.db.GetMemoryStats()) + if glog.V(1) { + glog.Info(w.db.GetMemoryStats()) + } w.metrics.IndexDBSize.Set(float64(w.db.DatabaseSizeOnDisk())) msTime = time.Now().Add(10 * time.Minute) }