Skip to content

Commit

Permalink
Change log level to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jul 17, 2021
1 parent 66665de commit fa2da33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Clients/Consumer/KafkaConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function (RdKafkaConsumer $kafka, int $err, string $reason): void {
function (RdKafkaConsumer $kafka, int $err, ?array $partitions = null): void {
switch ($err) {
case RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS:
$this->logger->info(
$this->logger->debug(
'Assigning partitions',
$partitions === null ? [] : array_map(
static function (TopicPartition $partition): string {
Expand All @@ -63,7 +63,7 @@ static function (TopicPartition $partition): string {
$kafka->assign($partitions);
break;
case RD_KAFKA_RESP_ERR__REVOKE_PARTITIONS:
$this->logger->info(
$this->logger->debug(
'Revoking partitions',
$partitions === null ? [] : array_map(
static function (TopicPartition $partition): string {
Expand Down Expand Up @@ -170,11 +170,11 @@ private function doStart(
$onPartitionEof();
}

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

break;
case RD_KAFKA_RESP_ERR__TIMED_OUT:
$this->logger->info(sprintf('Timed out with timeout %d ms', $timeoutMs));
$this->logger->debug(sprintf('Timed out with timeout %d ms', $timeoutMs));
if ($onTimedOut !== null) {
$onTimedOut();
}
Expand Down Expand Up @@ -225,7 +225,7 @@ private function checkBatchTimedOut(

public function shutdown(): void
{
$this->logger->info('Shutting down');
$this->logger->debug('Shutting down');

$this->shouldRun = false;
}
Expand Down

0 comments on commit fa2da33

Please sign in to comment.