Skip to content

Commit fa2da33

Browse files
committed
Change log level to debug
1 parent 66665de commit fa2da33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Clients/Consumer/KafkaConsumer.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function (RdKafkaConsumer $kafka, int $err, string $reason): void {
5151
function (RdKafkaConsumer $kafka, int $err, ?array $partitions = null): void {
5252
switch ($err) {
5353
case RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS:
54-
$this->logger->info(
54+
$this->logger->debug(
5555
'Assigning partitions',
5656
$partitions === null ? [] : array_map(
5757
static function (TopicPartition $partition): string {
@@ -63,7 +63,7 @@ static function (TopicPartition $partition): string {
6363
$kafka->assign($partitions);
6464
break;
6565
case RD_KAFKA_RESP_ERR__REVOKE_PARTITIONS:
66-
$this->logger->info(
66+
$this->logger->debug(
6767
'Revoking partitions',
6868
$partitions === null ? [] : array_map(
6969
static function (TopicPartition $partition): string {
@@ -170,11 +170,11 @@ private function doStart(
170170
$onPartitionEof();
171171
}
172172

173-
$this->logger->info('No more messages. Will wait for more');
173+
$this->logger->debug('No more messages. Will wait for more');
174174

175175
break;
176176
case RD_KAFKA_RESP_ERR__TIMED_OUT:
177-
$this->logger->info(sprintf('Timed out with timeout %d ms', $timeoutMs));
177+
$this->logger->debug(sprintf('Timed out with timeout %d ms', $timeoutMs));
178178
if ($onTimedOut !== null) {
179179
$onTimedOut();
180180
}
@@ -225,7 +225,7 @@ private function checkBatchTimedOut(
225225

226226
public function shutdown(): void
227227
{
228-
$this->logger->info('Shutting down');
228+
$this->logger->debug('Shutting down');
229229

230230
$this->shouldRun = false;
231231
}

0 commit comments

Comments
 (0)