From 41e2316cc5f212c5a2e1e7a863abbe8032e5141f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 16 May 2019 12:47:03 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20docker=20=E6=B2=99=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 --- output/run.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 2e15b4a..3a5ac61 100644 --- a/main.go +++ b/main.go @@ -66,9 +66,6 @@ func init() { log.SetLevel("warn") logger = log.NewLogger(os.Stdout) - logger.Warnf(*confUsers) - logger.Warnf(*confUsersWorkspaces) - //wd := util.OS.Pwd() //if strings.HasPrefix(wd, os.TempDir()) { // logger.Error("Don't run Wide in OS' temp directory or with `go run`") diff --git a/output/run.go b/output/run.go index 6f7511a..d50db3d 100644 --- a/output/run.go +++ b/output/run.go @@ -68,6 +68,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { cmd = exec.Command(filePath) curDir := filepath.Dir(filePath) cmd.Dir = curDir + logger.Warnf("Executing user's program [" + filePath + "] without docker sandbox") } stdout, err := cmd.StdoutPipe()