summaryrefslogtreecommitdiffhomepage
path: root/pkg/go-runsc
diff options
context:
space:
mode:
authorLantao Liu <taotaotheripper@gmail.com>2019-03-08 17:53:36 -0800
committerGitHub <noreply@github.com>2019-03-08 17:53:36 -0800
commitb7015c1a46fbea47ad8e7985583b30bd918ddc4b (patch)
tree4d1568f811e5772aa90120d96a0b53cdf85c42c4 /pkg/go-runsc
parent326bc9f3bac1b89414950772ac0cb87619b847d9 (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.go12
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
}