Skip to content

Commit

Permalink
Merge pull request #778 from Aiven-Open/matyaskuti/schema_reader_logg…
Browse files Browse the repository at this point in the history
…ing_fix

Fix logging on failed schema reader topic creation
  • Loading branch information
tvainika authored Dec 7, 2023
2 parents f247134 + da402bd commit da85083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karapace/schema_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ def run(self) -> None:
except InvalidReplicationFactorError:
LOG.info(
"[Schema Topic] Failed to create topic %r, not enough Kafka brokers ready yet, retrying",
topic.topic,
self.config["topic_name"],
)
self._stop_schema_reader.wait(timeout=SCHEMA_TOPIC_CREATION_TIMEOUT_SECONDS)
except: # pylint: disable=bare-except
LOG.exception("[Schema Topic] Failed to create %r, retrying", topic.topic)
LOG.exception("[Schema Topic] Failed to create %r, retrying", self.config["topic_name"])
self._stop_schema_reader.wait(timeout=SCHEMA_TOPIC_CREATION_TIMEOUT_SECONDS)

while not self._stop_schema_reader.is_set():
Expand Down

0 comments on commit da85083

Please sign in to comment.