File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1717
1818import collections
1919import functools
20- import logging
2120import warnings
2221
2322import grpc
5352# The list of gRPC Callable interfaces that return iterators.
5453_STREAM_WRAP_CLASSES = (grpc .UnaryStreamMultiCallable , grpc .StreamStreamMultiCallable )
5554
56- _LOGGER = logging .getLogger (__name__ )
57-
5855# denotes the proto response type for grpc calls
5956P = TypeVar ("P" )
6057
@@ -373,8 +370,9 @@ def create_channel(
373370 # Note that grpcio-gcp is deprecated
374371 if HAS_GRPC_GCP : # pragma: NO COVER
375372 if compression is not None and compression != grpc .Compression .NoCompression :
376- _LOGGER .debug (
377- "Compression argument is being ignored for grpc_gcp.secure_channel creation."
373+ warnings .warn (
374+ "The `compression` argument is ignored for grpc_gcp.secure_channel creation." ,
375+ DeprecationWarning ,
378376 )
379377 if attempt_direct_path :
380378 warnings .warn (
You can’t perform that action at this time.
0 commit comments