Skip to content

Commit

Permalink
Add debug logging to default transcripts fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky committed Jul 7, 2017
1 parent 253d0f4 commit 1662d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video_xblock/video_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def _update_default_transcripts(self, player, transcripts):
default_transcripts, transcripts_autoupload_message = player.get_default_transcripts(**kwargs)
except ApiClientError:
default_transcripts, transcripts_autoupload_message = [], _('Failed to fetch default transcripts.')
log.debug("Autofetch message: '{}'".format(transcripts_autoupload_message))
# Default transcripts should contain transcripts of distinct languages only
distinct_default_transcripts = player.clean_default_transcripts(default_transcripts)
# Needed for frontend
Expand Down Expand Up @@ -373,7 +374,7 @@ def studio_view(self, _context):
# Prepare basic_fields and advanced_fields for them to be rendered
basic_fields = self.prepare_studio_editor_fields(player.basic_fields)
advanced_fields = self.prepare_studio_editor_fields(player.advanced_fields)
log.debug("Fetched default transcripts: {}".format(self.default_transcripts))
log.debug("Fetched default transcripts: {}".format(initial_default_transcripts))
context = {
'advanced_fields': advanced_fields,
'auth_error_message': auth_error_message,
Expand Down

0 comments on commit 1662d86

Please sign in to comment.