Additional log information for invalid deposits (#3740)

* Additional log information for invalid deposits

* Update field names
This commit is contained in:
Jim McDonald 2019-10-08 11:28:20 +01:00 committed by Nishant Das
parent 1a94ef12b9
commit 1c4ea5c471

View File

@ -157,6 +157,8 @@ func (s *Service) ProcessDepositLog(ctx context.Context, depositLog gethTypes.Lo
validDepositsCount.Inc()
} else {
log.WithFields(logrus.Fields{
"eth1Block": depositLog.BlockHash.Hex(),
"eth1Tx": depositLog.TxHash.Hex(),
"merkleTreeIndex": index,
}).Info("Invalid deposit registered in deposit contract")
}