File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
python/knot_resolver/manager Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1515from knot_resolver .utils .modeling .exceptions import DataParsingError , DataValidationError
1616
1717logger = logging .getLogger (__name__ )
18+ logger .setLevel (logging .DEBUG )
1819
1920
2021def kafka_config (config : KresConfig ) -> List [Any ]:
@@ -330,11 +331,12 @@ async def _consumer_run(self) -> None:
330331 # ready to consume messages
331332 try :
332333 messages : Dict [TopicPartition , List [ConsumerRecord ]] = self ._consumer .poll (timeout_ms = 100 )
334+ logger .debug (f"Consumed { len (messages )} messages" )
333335 if messages :
334336 # ready to process messages
335337 process_messages (messages , self ._config )
336338 else :
337- await asyncio .sleep (10 )
339+ await asyncio .sleep (15 )
338340 except KafkaError as e :
339341 logger .error (f"{ error_msg_prefix } Kafka error:\n { e } " )
340342 self ._consumer_connect ()
You can’t perform that action at this time.
0 commit comments