From a7bd0050a637dd93bbd094e47576d25590c2391e Mon Sep 17 00:00:00 2001 From: Guruprasad Lakshmi Narayanan Date: Tue, 19 May 2020 20:43:25 +0530 Subject: [PATCH] Log the username to help with investigating the edge cases --- lms/djangoapps/course_blocks/transformers/library_content.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/course_blocks/transformers/library_content.py b/lms/djangoapps/course_blocks/transformers/library_content.py index bc0023e0b9..729d7953b7 100644 --- a/lms/djangoapps/course_blocks/transformers/library_content.py +++ b/lms/djangoapps/course_blocks/transformers/library_content.py @@ -242,8 +242,9 @@ class ContentLibraryOrderTransformer(BlockStructureTransformer): # before ordering the blocks. if current_children_blocks != current_selected_blocks: logger.info( - u'Mismatch between the children of %s in the stored state and the actual children', - str(block_key) + u'Mismatch between the children of %s in the stored state and the actual children for user %s', + str(block_key), + usage_info.user.username ) previous_count = len(current_selected_blocks.intersection(current_children_blocks)) mode = block_structure.get_xblock_field(block_key, 'mode')