File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ import * as zlib from 'zlib';
19
19
20
20
import { Call , WriteObject , WriteFlags } from './call-stream' ;
21
21
import { Channel } from './channel' ;
22
+ import { ChannelOptions } from './channel-options' ;
22
23
import { CompressionAlgorithms } from './compression-algorithms' ;
24
+ import { LogVerbosity } from './constants' ;
23
25
import { BaseFilter , Filter , FilterFactory } from './filter' ;
26
+ import * as logging from './logging' ;
24
27
import { Metadata , MetadataValue } from './metadata' ;
25
- import { ChannelOptions } from './channel-options' ;
26
28
27
29
const CompressionAlgorithKeys = new Set ( Object . keys ( CompressionAlgorithms ) ) ;
28
30
@@ -186,6 +188,8 @@ export class CompressionFilter extends BaseFilter implements Filter {
186
188
if ( isCompressionAlgorithmKey ( compressionAlgorithmKey ) ) {
187
189
this . defaultCompressionAlgorithm = CompressionAlgorithms [ compressionAlgorithmKey ] ;
188
190
this . sendCompression = getCompressionHandler ( this . defaultCompressionAlgorithm ) ;
191
+ } else {
192
+ logging . log ( LogVerbosity . ERROR , 'Invalid value provided for grpc.default_compression_algorithm option' ) ;
189
193
}
190
194
}
191
195
You can’t perform that action at this time.
0 commit comments