Skip to content

Commit

Permalink
Set default logging driver to json-file
Browse files Browse the repository at this point in the history
Restores the previous default logging driver to json-file following
upstream podman change to journald.

Fixes hashicorp#148
  • Loading branch information
optiz0r committed Jan 20, 2022
1 parent 7e3d018 commit 640c6f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive
if driverConfig.Logging.Driver == "" || driverConfig.Logging.Driver == LOG_DRIVER_NOMAD {
// Only modify container loggin path if LogCollection is not disabled
if !d.config.DisableLogCollection {
createOpts.LogConfiguration.Driver = "json-file"

createOpts.ContainerBasicConfig.LogConfiguration.Path = cfg.StdoutPath
}
} else if driverConfig.Logging.Driver == LOG_DRIVER_JOURNALD {
Expand Down

0 comments on commit 640c6f9

Please sign in to comment.