Commit 3119d5874d5990a2b452e649152a4129e86afd05
1 parent
4fc0104e
Exists in
master
and in
1 other branch
- added log with grade in test mode.
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
serve.py
@@ -122,6 +122,8 @@ class Root(object): | @@ -122,6 +122,8 @@ class Root(object): | ||
122 | 122 | ||
123 | if t['practice']: | 123 | if t['practice']: |
124 | # ---- Repeat the test ---- | 124 | # ---- Repeat the test ---- |
125 | + cherrypy.log.error('Student %s terminated with grade = %.2f points.' % | ||
126 | + (t['number'], t['grade']), 'APPLICATION') | ||
125 | raise cherrypy.HTTPRedirect('/test') | 127 | raise cherrypy.HTTPRedirect('/test') |
126 | 128 | ||
127 | else: | 129 | else: |