Logging: corrected ref to teacher ID (was using student ID)