[jhbuild] [buildbot] Log errors when parsing buildbot slave config (GNOME bug 606398)



commit 653264adb8b8ae2b06d6e46d9887737546e38a57
Author: Frédéric Péters <fpeters 0d be>
Date:   Tue Feb 2 22:55:32 2010 +0100

    [buildbot] Log errors when parsing buildbot slave config (GNOME bug 606398)

 jhbuild/commands/bot.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/commands/bot.py b/jhbuild/commands/bot.py
index 42c3ed2..68bc348 100644
--- a/jhbuild/commands/bot.py
+++ b/jhbuild/commands/bot.py
@@ -31,6 +31,7 @@ from optparse import make_option
 import socket
 import __builtin__
 import csv
+import logging
 
 try:
     import elementtree.ElementTree as ET
@@ -286,12 +287,15 @@ class cmd_bot(Command):
             run_clean_afterwards = False
 
             def load_extra_configuration(self, slaves_dir):
+                from twisted.python import log
                 slave_xml_file = os.path.join(slaves_dir, self.slavename + '.xml')
                 if not os.path.exists(slave_xml_file):
+                    log.msg(_('No description for slave %s.') % self.slavename)
                     return
                 try:
                     cfg = ET.parse(slave_xml_file)
                 except: # parse error
+                    log.msg(_('Failed to parse slave config for %s.') % self.slavename)
                     return
 
                 for attribute in ('config/max_builds', 'config/missing_timeout',



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]