This commit is contained in:
parent
1f552a7130
commit
2dface044e
|
@ -177,7 +177,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
|
|||
// remove the exited process from user process set
|
||||
processes.remove(wSession, cmd.Process)
|
||||
|
||||
logger.Debugf("Session [%s] 's running [id=%d, file=%s] has done [stdout err]", sid, runningId, filePath)
|
||||
logger.Tracef("Session [%s] 's running [id=%d, file=%s] has done [stdout err]", sid, runningId, filePath)
|
||||
|
||||
if nil != wsChannel {
|
||||
channelRet["cmd"] = "run-done"
|
||||
|
@ -223,7 +223,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
|
|||
// remove the exited process from user process set
|
||||
processes.remove(wSession, cmd.Process)
|
||||
|
||||
logger.Debugf("Session [%s] 's running [id=%d, file=%s] has done [stderr err]", sid, runningId, filePath)
|
||||
logger.Tracef("Session [%s] 's running [id=%d, file=%s] has done [stderr err]", sid, runningId, filePath)
|
||||
|
||||
channelRet["cmd"] = "run-done"
|
||||
channelRet["output"] = "<span class='stderr'>" + buf + "</span>"
|
||||
|
|
|
@ -46,7 +46,7 @@ func (procs *procs) add(wSession *session.WideSession, proc *os.Process) {
|
|||
// bind process with wide session
|
||||
wSession.SetProcesses(userProcesses)
|
||||
|
||||
logger.Debugf("Session [%s] has [%d] processes", sid, len((*procs)[sid]))
|
||||
logger.Tracef("Session [%s] has [%d] processes", sid, len((*procs)[sid]))
|
||||
}
|
||||
|
||||
// remove removes the specified process from the user process set.
|
||||
|
@ -67,7 +67,7 @@ func (procs *procs) remove(wSession *session.WideSession, proc *os.Process) {
|
|||
// bind process with wide session
|
||||
wSession.SetProcesses(newProcesses)
|
||||
|
||||
logger.Debugf("Session [%s] has [%d] processes", sid, len((*procs)[sid]))
|
||||
logger.Tracef("Session [%s] has [%d] processes", sid, len((*procs)[sid]))
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue