Bustage fix from last push for Bug 771626. r=jhammel over IRC
authorJustin Wood <callek@mozilla.com>
Thu, 19 Jul 2012 18:26:54 -0400
changeset 2798 e83b225cfc83988de74a73f9996cf9c4197124a4
parent 2797 2e38c0d51e81ed1d18f764c7c4bbd4ca7b1a5f6a
child 2799 c23c755c5971017b9a3f8a363c99fc87af3c97cf
push id1981
push userCallek@gmail.com
push dateThu, 19 Jul 2012 22:27:08 +0000
reviewersjhammel
bugs771626
Bustage fix from last push for Bug 771626. r=jhammel over IRC
sut_tools/sut_lib.py
--- a/sut_tools/sut_lib.py
+++ b/sut_tools/sut_lib.py
@@ -224,17 +224,17 @@ def getRebootLogger(tegra_name):
     from logging.handlers import RotatingFileHandler
     from multiprocessing import get_logger
     rebtLog = get_logger()
     tegra_ip = tegra_name
     if 'tegra' in tegra_name:
         tegra_ip = getOurIP(tegra_name)
 
     fileHandler   = RotatingFileHandler(os.path.join('/builds', 'reboots.log'), maxBytes=1000000, backupCount=99)
-    fileFormatter = logging.Formatter('%%(asctime)s %(tegra_ip)-15s %%(processName)s: %%(message)s' % tegra_ip)
+    fileFormatter = logging.Formatter('%%(asctime)s %(tegra_ip)-15s %%(processName)s: %%(message)s' % {'tegra_ip':tegra_ip})
 
     fileHandler.setFormatter(fileFormatter)
 
     rebtLog.addHandler(fileHandler)
     rebtLog.fileHandler = fileHandler
 
     echoHandler   = logging.StreamHandler()
     echoFormatter = logging.Formatter('%(tegra_ip)-15s %%(processName)s: %%(message)s' % tegra_ip)