diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-01-30 06:23:58 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-03 19:49:14 +0000 |
commit | 095aaaa639ab57c594bb80bfefbfaed2a2fdff92 (patch) | |
tree | 55db4600d1fe284fb591ee810d490b179afe16ad /libpod/container.go | |
parent | 6ba6ecf59b9204d36388de07b866f157a4d13957 (diff) | |
download | podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.tar.gz podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.tar.bz2 podman-095aaaa639ab57c594bb80bfefbfaed2a2fdff92.zip |
Allow users to specify logpath
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #135
Approved by: mheon
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/container.go b/libpod/container.go index 27042de39..ccf864826 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -236,8 +236,9 @@ type ContainerConfig struct { CreatedTime time.Time `json:"createdTime"` // Cgroup parent of the container CgroupParent string `json:"cgroupParent"` - - // TODO log options - logpath for plaintext, others for log drivers + // LogPath log location + LogPath string `json:"logPath"` + // TODO log options for log drivers } // ContainerStatus returns a string representation for users @@ -360,8 +361,7 @@ func (c *Container) RuntimeName() string { // This file will only be present after Init() is called to create the container // in runc func (c *Container) LogPath() string { - // TODO store this in state and allow overriding - return c.logPath() + return c.config.LogPath } // IPAddress returns the IP address of the container |