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
commit 3ad5916f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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{