diff options
author | Lantao Liu <taotaotheripper@gmail.com> | 2019-03-08 17:53:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-08 17:53:36 -0800 |
commit | b7015c1a46fbea47ad8e7985583b30bd918ddc4b (patch) | |
tree | 4d1568f811e5772aa90120d96a0b53cdf85c42c4 /pkg/go-runsc | |
parent | 326bc9f3bac1b89414950772ac0cb87619b847d9 (diff) |
Put the gvisor user log into sandbox log directory. (#17)
Signed-off-by: Lantao Liu <lantaol@google.com>
Diffstat (limited to 'pkg/go-runsc')
-rw-r--r-- | pkg/go-runsc/utils.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pkg/go-runsc/utils.go b/pkg/go-runsc/utils.go index c78d0c162..e4c3c937a 100644 --- a/pkg/go-runsc/utils.go +++ b/pkg/go-runsc/utils.go @@ -39,18 +39,8 @@ func putBuf(b *bytes.Buffer) { } // FormatLogPath parses runsc config, and fill in %ID% in the log path. -// * For debug-log, it fills in the id in place; -// * For user-log, it fills in the id, returns the user log path, and deletes -// the `user-log` entry from the config, because it will only be added to runsc -// calls that create a new sandbox. -func FormatLogPath(id string, config map[string]string) string { +func FormatLogPath(id string, config map[string]string) { if path, ok := config["debug-log"]; ok { config["debug-log"] = strings.Replace(path, "%ID%", id, -1) } - var userLog string - if path, ok := config["user-log"]; ok { - userLog = strings.Replace(path, "%ID%", id, -1) - delete(config, "user-log") - } - return userLog } |