Skip to content

Commit

Permalink
grpc: add a warning for unsupported codec (#6658)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars authored Oct 13, 2023
1 parent 3e9b85c commit 2cf5619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1913,6 +1913,7 @@ func (s *Server) getCodec(contentSubtype string) baseCodec {
}
codec := encoding.GetCodec(contentSubtype)
if codec == nil {
logger.Warningf("Unsupported codec %q. Defaulting to %q for now. This will start to fail in future releases.", contentSubtype, proto.Name)
return encoding.GetCodec(proto.Name)
}
return codec
Expand Down

0 comments on commit 2cf5619

Please # to comment.