diff options
author | praveensastry <sastry.praveen@gmail.com> | 2019-08-06 11:57:50 +1000 |
---|---|---|
committer | praveensastry <sastry.praveen@gmail.com> | 2019-08-06 11:57:50 +1000 |
commit | 8d89c0d92b3839eed0839b1a9bc7666e6261d972 (patch) | |
tree | 838fc6f95af35943973d862c594054b20a653653 /runsc/boot/config.go | |
parent | 607be0585fdc659ec3c043c989a8a6f86fcc14db (diff) |
Remove traces option for ref leak mode
Diffstat (limited to 'runsc/boot/config.go')
-rw-r--r-- | runsc/boot/config.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runsc/boot/config.go b/runsc/boot/config.go index 139eb1cce..4276a4cc4 100644 --- a/runsc/boot/config.go +++ b/runsc/boot/config.go @@ -116,12 +116,10 @@ func MakeWatchdogAction(s string) (watchdog.Action, error) { // MakeRefsLeakMode converts type from string func MakeRefsLeakMode(s string) (refs.LeakMode, error) { switch strings.ToLower(s) { - case "nocheck": + case "disabled": return refs.NoLeakChecking, nil case "warning": return refs.LeaksLogWarning, nil - case "traces": - return refs.LeaksLogTraces, nil default: return 0, fmt.Errorf("invalid refs leakmode %q", s) } @@ -245,7 +243,7 @@ func (c *Config) ToFlags() []string { "--num-network-channels=" + strconv.Itoa(c.NumNetworkChannels), "--rootless=" + strconv.FormatBool(c.Rootless), "--alsologtostderr=" + strconv.FormatBool(c.AlsoLogToStderr), - "--refs-leak-mode=" + c.ReferenceLeakMode.String(), + "--ref-leak-mode=" + c.ReferenceLeakMode.String(), } if c.TestOnlyAllowRunAsCurrentUserWithoutChroot { // Only include if set since it is never to be used by users. |