This commit is contained in:
Liang Ding 2014-12-23 09:35:29 +08:00
parent 1f552a7130
commit 2dface044e
2 changed files with 4 additions and 4 deletions

View File

@ -177,7 +177,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
// remove the exited process from user process set // remove the exited process from user process set
processes.remove(wSession, cmd.Process) 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 { if nil != wsChannel {
channelRet["cmd"] = "run-done" channelRet["cmd"] = "run-done"
@ -223,7 +223,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
// remove the exited process from user process set // remove the exited process from user process set
processes.remove(wSession, cmd.Process) 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["cmd"] = "run-done"
channelRet["output"] = "<span class='stderr'>" + buf + "</span>" channelRet["output"] = "<span class='stderr'>" + buf + "</span>"

View File

@ -46,7 +46,7 @@ func (procs *procs) add(wSession *session.WideSession, proc *os.Process) {
// bind process with wide session // bind process with wide session
wSession.SetProcesses(userProcesses) 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. // 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 // bind process with wide session
wSession.SetProcesses(newProcesses) 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 return
} }