Skip to content

Commit

Permalink
Remove logging of tls/mtls cert info.
Browse files Browse the repository at this point in the history
  • Loading branch information
smithjilks committed Aug 1, 2024
1 parent c42d4a7 commit c456aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ func (s *Server) setupTLSConfig() (*tls.Config, error) {
}
switch {
case mtlsCA != "":
s.Logger.Info(fmt.Sprintf("%s service gRPC server listening at %s with TLS/mTLS cert %s , key %s and %s", s.Name, s.Address, s.Config.CertFile, s.Config.KeyFile, mtlsCA))
s.Logger.Info(fmt.Sprintf("%s service gRPC server listening at %s with TLS/mTLS", s.Name, s.Address))
default:
s.Logger.Info(fmt.Sprintf("%s service gRPC server listening at %s with TLS cert %s and key %s", s.Name, s.Address, s.Config.CertFile, s.Config.KeyFile))
s.Logger.Info(fmt.Sprintf("%s service gRPC server listening at %s with TLS", s.Name, s.Address))
}

return tlsConfig, nil
Expand Down

0 comments on commit c456aff

Please sign in to comment.