GODT-2016: added more logging of gRPC events at info level.

This commit is contained in:
Xavier Michelon
2022-11-02 15:19:04 +01:00
parent 8ca849b7a8
commit cb871ce4bc
3 changed files with 13 additions and 6 deletions

View File

@ -125,6 +125,7 @@ func NewService(
}
func (s *Service) startGRPCServer() {
s.log.Info("Starting gRPC server")
tlsConfig, pemCert, err := s.generateTLSConfig()
if err != nil {
s.log.WithError(err).Panic("Could not generate gRPC TLS config")
@ -148,7 +149,7 @@ func (s *Service) startGRPCServer() {
if path, err := s.saveGRPCServerConfigFile(); err != nil {
s.log.WithError(err).WithField("path", path).Panic("Could not write gRPC service config file")
} else {
s.log.WithField("path", path).Debug("Successfully saved gRPC service config file")
s.log.WithField("path", path).Info("Successfully saved gRPC service config file")
}
s.log.Info("gRPC server listening at ", s.listener.Addr())