From ee76386d009af76c955bb1462af1b829317c2f17 Mon Sep 17 00:00:00 2001 From: Joshua Krstic Date: Sun, 17 Sep 2023 19:09:24 -0700 Subject: [PATCH] Change directory that experiments data is saved to. Correct log messages --- launcher/launcher/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/launcher/launcher/main.go b/launcher/launcher/main.go index e68e5293c..6c798446a 100644 --- a/launcher/launcher/main.go +++ b/launcher/launcher/main.go @@ -79,17 +79,20 @@ func main() { return } + if err := os.MkdirAll(launcherfile.HostTmpPath, 0744); err != nil { + logger.Printf("failed to create %s: %v", launcherfile.HostTmpPath, err) + } experimentsFile := path.Join(launcherfile.HostTmpPath, experimentDataFile) args := fmt.Sprintf("-output=%s", experimentsFile) err = exec.Command(binaryPath, args).Run() if err != nil { - logger.Printf("failure during experiment sync: %v", err) + logger.Printf("failure during experiment sync: %v\n", err) } e, err := experiments.New(experimentsFile) if err != nil { - logger.Printf("failed to read experiment file %v\n", err) + logger.Printf("failed to read experiment file: %v\n", err) // do not fail if experiment retrieval fails } launchSpec.Experiments = e