libcontainer/logs: use int for Config.LogPipeFd

It does not make sense to have a string for a numeric type.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2020-07-14 14:54:43 -07:00
parent ec7ca2a9d8
commit d38d1f9f79
3 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -176,9 +176,9 @@ func (f *FatalWriter) Write(p []byte) (n int, err error) {
func createLogConfig(context *cli.Context) logs.Config {
logFilePath := context.GlobalString("log")
logPipeFd := ""
logPipeFd := 0
if logFilePath == "" {
logPipeFd = "2"
logPipeFd = 2
}
config := logs.Config{
LogPipeFd: logPipeFd,