Remove stack trace from eth1 connection errors (#8957)

This commit is contained in:
Ivan Martinez 2021-05-28 17:25:54 -04:00 committed by GitHub
parent 40b4079924
commit bb8625ede5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -511,7 +511,7 @@ func (s *Service) waitForConnection() {
logCounter := 0 logCounter := 0
errorLogger := func(err error, msg string) { errorLogger := func(err error, msg string) {
if logCounter > logThreshold { if logCounter > logThreshold {
log.WithError(err).Error(msg) log.Errorf("%s: %v", msg, err)
logCounter = 0 logCounter = 0
} }
logCounter++ logCounter++