Skip to content

Commit

Permalink
Logs results of students by cohort query
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebrownlee committed Jul 23, 2024
1 parent 1625598 commit 4b50c70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LearningAPI/views/student_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ def list(self, request):
columns = [col[0] for col in cursor.description]
results = cursor.fetchall()

logger = logging.getLogger("LearningPlatform")
logger.debug("Number of student records retrieved for cohort %s is %s", cohort, len(results))

students = []
for row in results:
student = dict(zip(columns, row))
Expand Down

0 comments on commit 4b50c70

Please sign in to comment.