Merge pull request #6009 from baude/v2hclog

separate healthcheck and container log paths
This commit is contained in:
OpenShift Merge Robot
2020-04-28 00:37:12 +02:00
committed by GitHub

View File

@ -238,7 +238,7 @@ func (c *Container) updateHealthCheckLog(hcl define.HealthCheckLog, inStartPerio
// HealthCheckLogPath returns the path for where the health check log is
func (c *Container) healthCheckLogPath() string {
return filepath.Join(filepath.Dir(c.LogPath()), "healthcheck.log")
return filepath.Join(filepath.Dir(c.state.RunDir), "healthcheck.log")
}
// GetHealthCheckLog returns HealthCheck results by reading the container's