Skip to content

Commit 2cf5619

Browse files
authored
grpc: add a warning for unsupported codec (#6658)
1 parent 3e9b85c commit 2cf5619

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,7 @@ func (s *Server) getCodec(contentSubtype string) baseCodec {
19131913
}
19141914
codec := encoding.GetCodec(contentSubtype)
19151915
if codec == nil {
1916+
logger.Warningf("Unsupported codec %q. Defaulting to %q for now. This will start to fail in future releases.", contentSubtype, proto.Name)
19161917
return encoding.GetCodec(proto.Name)
19171918
}
19181919
return codec

0 commit comments

Comments
 (0)