master
李光春 2 years ago
parent 97132fd582
commit 343bc45061

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/glycerine/rbuf" "github.com/glycerine/rbuf"
"github.com/qiniu/log" log "github.com/sirupsen/logrus"
) )
// The new broadcast // The new broadcast

@ -31,7 +31,7 @@ import (
"github.com/codeskyblue/gosuv/pushover" "github.com/codeskyblue/gosuv/pushover"
"github.com/codeskyblue/kexec" "github.com/codeskyblue/kexec"
"github.com/kennygrant/sanitize" "github.com/kennygrant/sanitize"
"github.com/qiniu/log" log "github.com/sirupsen/logrus"
) )
type FSMState string type FSMState string

@ -10,7 +10,7 @@ import (
"path/filepath" "path/filepath"
"github.com/equinox-io/equinox" "github.com/equinox-io/equinox"
"github.com/qiniu/log" log "github.com/sirupsen/logrus"
"github.com/urfave/cli" "github.com/urfave/cli"
) )

@ -7,7 +7,7 @@ import (
"runtime" "runtime"
"time" "time"
"github.com/qiniu/log" log "github.com/sirupsen/logrus"
) )
var ErrGoTimeout = errors.New("GoTimeoutFunc") var ErrGoTimeout = errors.New("GoTimeoutFunc")

@ -25,8 +25,8 @@ import (
"github.com/go-yaml/yaml" "github.com/go-yaml/yaml"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/qiniu/log"
_ "github.com/shurcooL/vfsgen" _ "github.com/shurcooL/vfsgen"
log "github.com/sirupsen/logrus"
) )
var defaultConfigDir string var defaultConfigDir string
@ -352,10 +352,10 @@ func (s *Supervisor) hAddProgram(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusForbidden) http.Error(w, err.Error(), http.StatusForbidden)
return return
} }
envs := strings.Split(strings.ReplaceAll(r.FormValue("environ"),":",";"),";") envs := strings.Split(strings.ReplaceAll(r.FormValue("environ"), ":", ";"), ";")
envsok := []string{} envsok := []string{}
for _, env := range envs { for _, env := range envs {
if strings.Contains(env, "="){ if strings.Contains(env, "=") {
envsok = append(envsok, env) envsok = append(envsok, env)
} }
} }

Loading…
Cancel
Save