Skip to contentSkip to conversation

yocto-start-autobuilder: Make sure janitor logging goes to a log file

PATCH In review Richard Purdie 1 participant 1 message Mar 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 yocto-start-autobuilder: Make sure janitor logging goes to a log file

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(-)
yocto-start-autobuilder +1 -1
index b34a60d..74e3a13 100755
@@ -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)