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 17
17
18
18
import collections
19
19
import functools
20
- import logging
21
20
import warnings
22
21
23
22
import grpc
53
52
# The list of gRPC Callable interfaces that return iterators.
54
53
_STREAM_WRAP_CLASSES = (grpc .UnaryStreamMultiCallable , grpc .StreamStreamMultiCallable )
55
54
56
- _LOGGER = logging .getLogger (__name__ )
57
-
58
55
# denotes the proto response type for grpc calls
59
56
P = TypeVar ("P" )
60
57
@@ -373,8 +370,9 @@ def create_channel(
373
370
# Note that grpcio-gcp is deprecated
374
371
if HAS_GRPC_GCP : # pragma: NO COVER
375
372
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 ,
378
376
)
379
377
if attempt_direct_path :
380
378
warnings .warn (
You can’t perform that action at this time.
0 commit comments