Skip to content

Commit

Permalink
Merge pull request #11977 from rhatdan/log
Browse files Browse the repository at this point in the history
Don't include ctr.log if not using file logging
  • Loading branch information
openshift-merge-robot authored Oct 15, 2021
2 parents fecef15 + f9ff052 commit 307b1b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libpod/container_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -1008,12 +1008,15 @@ func (c *Container) exportCheckpoint(options ContainerCheckpointOptions) error {

includeFiles := []string{
"artifacts",
"ctr.log",
metadata.ConfigDumpFile,
metadata.SpecDumpFile,
metadata.NetworkStatusFile,
}

if c.LogDriver() == define.KubernetesLogging ||
c.LogDriver() == define.JSONLogging {
includeFiles = append(includeFiles, "ctr.log")
}
if options.PreCheckPoint {
includeFiles = append(includeFiles, preCheckpointDir)
} else {
Expand Down

0 comments on commit 307b1b4

Please sign in to comment.