Skip to content
Snippets Groups Projects
Commit 4697a392 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-652: prevent loooooong (and slow) logline

parent 70105721
No related branches found
No related tags found
1 merge request!403Resolve TMSS-652 and TMSS-714
......@@ -36,7 +36,7 @@ def process_feedback_into_subtask_dataproducts(subtask:Subtask, feedback: parame
if subtask.state.value != SubtaskState.objects.get(value='finishing').value:
raise SubtaskInvalidStateException("Cannot process feedback for subtask id=%s because the state is '%s' and not '%s'" % (subtask.id, subtask.state.value, SubtaskState.Choices.FINISHING.value))
logger.info('processing feedback into the dataproducts of subtask id=%s type=%s feedback: %s', subtask.id, subtask.specifications_template.type.value, single_line_with_single_spaces(str(feedback)))
logger.info('processing feedback into the dataproducts of subtask id=%s type=%s feedback:\n%s', subtask.id, subtask.specifications_template.type.value, str(feedback))
# create a subset in dict-form with the dataproduct information
if subtask.specifications_template.type.value == SubtaskType.Choices.OBSERVATION.value:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment