Skip to content

Commit

Permalink
Change the log-level when a new ServerTransport cannot be created (#5524
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jpkrohling committed Jul 19, 2022
1 parent f601dfa commit 6dd40ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Expand Up @@ -898,7 +898,7 @@ func (s *Server) newHTTP2Transport(c net.Conn) transport.ServerTransport {
if err != credentials.ErrConnDispatched {
// Don't log on ErrConnDispatched and io.EOF to prevent log spam.
if err != io.EOF {
channelz.Warning(logger, s.channelzID, "grpc: Server.Serve failed to create ServerTransport: ", err)
channelz.Info(logger, s.channelzID, "grpc: Server.Serve failed to create ServerTransport: ", err)
}
c.Close()
}
Expand Down

0 comments on commit 6dd40ad

Please sign in to comment.