Skip to content

Commit

Permalink
Merge pull request #3135 from clinta/docker-log-retry
Browse files Browse the repository at this point in the history
fix logging re-init
  • Loading branch information
dadgar committed Aug 30, 2017
2 parents ea4f1c2 + cfffce0 commit b42eac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b42eac1

Please sign in to comment.