Remove logging

pull/1510/head
flicker-harmony 5 years ago
parent 2f73bcc09c
commit 57614e3530
  1. 1
      api/service/explorer/storage.go
  2. 2
      api/service/explorer/structs.go

@ -113,7 +113,6 @@ func (storage *Storage) Dump(block *types.Block, height uint64) {
// Store txs
for _, tx := range block.Transactions() {
if tx.To() == nil {
utils.Logger().Info().Msgf("LOL Tx id %s", tx.Hash().Hex())
continue
}

@ -111,7 +111,6 @@ func NewBlock(block *types.Block, height int) *Block {
// GetTransaction ...
func GetTransaction(tx *types.Transaction, accountBlock *types.Block) *Transaction {
utils.Logger().Info().Msgf("Tx id %s", tx.Hash().Hex())
if tx.To() == nil {
return nil
}
@ -119,7 +118,6 @@ func GetTransaction(tx *types.Transaction, accountBlock *types.Block) *Transacti
if err != nil {
utils.Logger().Error().Err(err).Msg("Error when parsing tx into message")
}
utils.Logger().Info().Msg("OK done")
return &Transaction{
ID: tx.Hash().Hex(),
Timestamp: strconv.Itoa(int(accountBlock.Time().Int64() * 1000)),

Loading…
Cancel
Save