@@ -258,14 +258,14 @@ def __init__(self, msg_type, schema_registry_client, conf=None):
258
258
self ._use_deprecated_format = conf_copy .pop ('use.deprecated.format' )
259
259
if not isinstance (self ._use_deprecated_format , bool ):
260
260
raise ValueError ("use.deprecated.format must be a boolean value" )
261
- if not self ._use_deprecated_format :
261
+ if self ._use_deprecated_format :
262
262
warnings .warn ("ProtobufSerializer: the 'use.deprecated.format' "
263
263
"configuration property, and the ability to use the "
264
264
"old incorrect Protobuf serializer heading format "
265
265
"introduced in confluent-kafka-python v1.4.0, "
266
266
"will be removed in an upcoming release in 2021 Q2. "
267
267
"Please migrate your Python Protobuf producers and "
268
- "consumers to 'use.deprecated.format':True as "
268
+ "consumers to 'use.deprecated.format':False as "
269
269
"soon as possible" )
270
270
271
271
self ._subject_name_func = conf_copy .pop ('subject.name.strategy' )
@@ -482,14 +482,14 @@ def __init__(self, message_type, conf=None):
482
482
self ._use_deprecated_format = conf_copy .pop ('use.deprecated.format' )
483
483
if not isinstance (self ._use_deprecated_format , bool ):
484
484
raise ValueError ("use.deprecated.format must be a boolean value" )
485
- if not self ._use_deprecated_format :
485
+ if self ._use_deprecated_format :
486
486
warnings .warn ("ProtobufDeserializer: the 'use.deprecated.format' "
487
487
"configuration property, and the ability to use the "
488
488
"old incorrect Protobuf serializer heading format "
489
489
"introduced in confluent-kafka-python v1.4.0, "
490
490
"will be removed in an upcoming release in 2022 Q2. "
491
491
"Please migrate your Python Protobuf producers and "
492
- "consumers to 'use.deprecated.format':True as "
492
+ "consumers to 'use.deprecated.format':False as "
493
493
"soon as possible" )
494
494
495
495
descriptor = message_type .DESCRIPTOR
0 commit comments