fix logging re-init

This commit is contained in:
Clint Armstrong 2017-08-30 07:48:43 -04:00
parent 6aaffa30f0
commit 7e35ab6abb

View file

@ -924,7 +924,7 @@ func (d *DockerDriver) createContainerConfig(ctx *ExecContext, task *structs.Tas
memLimit := int64(task.Resources.MemoryMB) * 1024 * 1024
if len(driverConfig.Logging) == 0 {
if len(driverConfig.Logging) == 0 || driverConfig.Logging[0].Type == "syslog" {
if runtime.GOOS != "darwin" {
d.logger.Printf("[DEBUG] driver.docker: Setting default logging options to syslog and %s", syslogAddr)
driverConfig.Logging = []DockerLoggingOpts{