Skip to content

Commit

Permalink
CONCD-712 Logging statements (should show up in AWS) (#2293)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasarkar committed Feb 26, 2024
1 parent bb3dbbf commit 82b7d96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exporter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@


def get_latest_transcription_data(asset_qs):
logger.info("Getting latest transcription data for %s assets.", asset_qs.count())
latest_trans_subquery = (
Transcription.objects.filter(asset=OuterRef("pk"))
.order_by("-pk")
Expand Down Expand Up @@ -192,6 +193,7 @@ class ExportCampaignToCSV(TemplateView):

@method_decorator(staff_member_required)
def get(self, request, *args, **kwargs):
logger.info("Exporting %s to csv", self.kwargs["campaign_slug"])
asset_qs = Asset.objects.filter(
item__project__campaign__slug=self.kwargs["campaign_slug"]
)
Expand Down

0 comments on commit 82b7d96

Please sign in to comment.