From 693ce7b952e8c89c55527a9c1f258bd1b705aed6 Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Thu, 18 Mar 2021 17:13:01 +0800 Subject: [PATCH] Mask All Debug Logs for Endpoints (#8624) --- beacon-chain/powchain/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/powchain/service.go b/beacon-chain/powchain/service.go index 84e46be38..3a3c662a0 100644 --- a/beacon-chain/powchain/service.go +++ b/beacon-chain/powchain/service.go @@ -497,7 +497,7 @@ func (s *Service) waitForConnection() { for { select { case <-ticker.C: - log.Debugf("Trying to dial endpoint: %s", s.currHttpEndpoint) + log.Debugf("Trying to dial endpoint: %s", logutil.MaskCredentialsLogging(s.currHttpEndpoint)) errConnect := s.connectToPowChain() if errConnect != nil { errorLogger(errConnect, "Could not connect to powchain endpoint") @@ -905,7 +905,7 @@ func (s *Service) fallbackToNextEndpoint() { return } s.currHttpEndpoint = s.httpEndpoints[nextIndex] - log.Infof("Falling back to alternative endpoint: %s", s.currHttpEndpoint) + log.Infof("Falling back to alternative endpoint: %s", logutil.MaskCredentialsLogging(s.currHttpEndpoint)) } func dedupEndpoints(endpoints []string) []string {