Skip to content

Commit

Permalink
Add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Jul 10, 2024
1 parent ee26280 commit a5acf91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kpops/components/streams_bootstrap/producer/producer_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from functools import cached_property

from pydantic import Field, computed_field
Expand All @@ -17,6 +18,8 @@
from kpops.components.streams_bootstrap.producer.model import ProducerAppValues
from kpops.utils.docstring import describe_attr

log = logging.getLogger("ProducerApp")


class ProducerAppCleaner(KafkaAppCleaner):
app: ProducerAppValues
Expand All @@ -40,6 +43,7 @@ async def update_cleaner_with_cluster_values(self):
if cluster_values:
self.app = ProducerAppValues.model_validate(cluster_values)
self.app.name_override = self.helm_name_override
log.debug("Updated producer cleaner with cluster values")


class ProducerApp(KafkaApp, StreamsBootstrap):
Expand Down
1 change: 1 addition & 0 deletions kpops/components/streams_bootstrap/streams/streams_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ async def update_cleaner_with_cluster_values(self) -> None:
if cluster_values:
self.app = StreamsAppValues.model_validate(cluster_values)
self.app.name_override = self.helm_name_override
log.debug("Updated streams cleaner with cluster values")

async def clean_pvcs(self, dry_run: bool) -> None:
app_full_name = super(HelmApp, self).full_name
Expand Down

0 comments on commit a5acf91

Please sign in to comment.