[Branch,~linaro-validation/lava-scheduler/trunk] Rev 260: Better display of error messages

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

Commit Message

Antonio Terceiro Sept. 5, 2013, 5:50 p.m.
Merge authors:
  Antonio Terceiro (terceiro)
Related merge proposals:
  https://code.launchpad.net/~terceiro/lava-scheduler/better-logging/+merge/183992
  proposed by: Antonio Terceiro (terceiro)
  review: Approve - Tyler Baker (tyler-baker)
------------------------------------------------------------
revno: 260 [merge]
committer: Antonio Terceiro <antonio.terceiro@linaro.org>
branch nick: trunk
timestamp: Thu 2013-09-05 14:49:11 -0300
message:
  Better display of error messages
modified:
  lava_scheduler_app/logfile_helper.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/logfile_helper.py'
--- lava_scheduler_app/logfile_helper.py	2013-08-28 15:13:07 +0000
+++ lava_scheduler_app/logfile_helper.py	2013-09-05 16:43:28 +0000
@@ -5,6 +5,8 @@ 
     errors = ""
     for line in logfile:
         if line.find("CriticalError:") != -1 or \
+           line.find("OperationFailed:") != -1 or \
+           line.find("ErrorMessage:") != -1 or \
            line.find("Lava failed on test:") != -1:
             errors += line