New /job/JOBID/log url to see job logs
[ais.git] / bin / djais / views.py
index e82a9fc894ef79e8585b6747f242b11ead1d2dc8..7f29e43f5d10b996ee246e2d416a61b90e5add6e 100644 (file)
@@ -928,11 +928,11 @@ def job_log(request, jobid):
         return HttpResponseForbidden('403 Forbidden')
     log = u''
     try:
-        log = file(RESULT_DIR+unicode(jobid)+'.log').read()
+        log = file(jobrunner.RESULT_DIR+unicode(jobid)+'.log').read()
     except IOError, err:
         if err.errno != 2: # No such file
             raise
-    return render_to_response('job.html', {'job': job, 'log': log}, RequestContext(request))
+    return render_to_response('job_log.html', {'job': job, 'log': log}, RequestContext(request))
 
 
 @http_authenticate(auth, 'ais')