[yocto] [AB PATCH 20/22] yocto-start-autobuilder: Make sure janitor logging goes to a log file

Elizabeth Flanagan elizabeth.flanagan at intel.com
Wed Mar 19 13:51:18 PDT 2014


From: Richard Purdie <richard.purdie at linuxfoundation.org>

Currently logging from the janitor gets lost. Ensure it gets to a log
file instead including anything to stderr.
---
 yocto-start-autobuilder | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yocto-start-autobuilder b/yocto-start-autobuilder
index b34a60d..74e3a13 100755
--- a/yocto-start-autobuilder
+++ b/yocto-start-autobuilder
@@ -79,7 +79,7 @@ if os.path.isfile(os.path.join(AB_BASE, ".setupdone")):
         os.chdir(AB_BASE)
         if os.environ["OPTIMIZED_GIT_CLONE"] == "True":
             os.chdir(AB_BASE)
-            subprocess.Popen("python bin/buildslave-janitor " + os.path.join(AB_BASE, "config/autobuilder.conf"), 
+            subprocess.Popen("python bin/buildslave-janitor " + os.path.join(AB_BASE, "config/autobuilder.conf") + ">> yocto-slave/janitor.log 2>&1", 
                            shell=True, stdin=None, 
                            stdout=None, stderr=None, 
                            close_fds=True)
-- 
1.8.1.2




More information about the yocto mailing list