Merge pull request #3799 from mikemccracken/2018-01-25/lxc-log-outside-container

lxc: move lxc log file out of container-visible alloc dir
This commit is contained in:
Alex Dadgar
2018-01-29 14:32:22 -08:00
committed by GitHub

View File

@@ -253,7 +253,7 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (*StartResponse,
}
c.SetLogLevel(logLevel)
logFile := filepath.Join(ctx.TaskDir.LogDir, fmt.Sprintf("%v-lxc.log", task.Name))
logFile := filepath.Join(ctx.TaskDir.Dir, fmt.Sprintf("%v-lxc.log", task.Name))
c.SetLogFile(logFile)
options := lxc.TemplateOptions{