[Branch,~linaro-validation/lava-scheduler/trunk] Rev 241: fix short log view

Message ID 20130130083313.13237.41342.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Jan. 30, 2013, 8:33 a.m.
------------------------------------------------------------
revno: 241
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Wed 2013-01-30 21:31:57 +1300
message:
  fix short log view
modified:
  lava_scheduler_app/views.py


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription

Patch

=== modified file 'lava_scheduler_app/views.py'
--- lava_scheduler_app/views.py	2013-01-30 01:31:16 +0000
+++ lava_scheduler_app/views.py	2013-01-30 08:31:57 +0000
@@ -570,8 +570,8 @@ 
     log_file = job.output_file()
 
     if log_file:
-        job_errors = getDispatcherErrors(log_file)
-        job_log_messages = getDispatcherLogMessages(log_file)
+        job_errors = getDispatcherErrors(job.output_file())
+        job_log_messages = getDispatcherLogMessages(job.output_file())
 
         levels = defaultdict(int)
         for kl in ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']: