mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user