logging
This commit is contained in:
parent
243ddd63c4
commit
4e37625c93
|
@ -150,7 +150,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
defer util.Recover()
|
defer util.Recover()
|
||||||
defer cmd.Wait()
|
defer cmd.Wait()
|
||||||
|
|
||||||
logger.Debugf("Session [%s] is running [id=%d, file=%s]", sid, runningId, filePath)
|
logger.Debugf("User [%s, %s] is running [id=%d, file=%s]", wSession.Username, sid, runningId, filePath)
|
||||||
|
|
||||||
// push once for front-end to get the 'run' state and pid
|
// push once for front-end to get the 'run' state and pid
|
||||||
if nil != wsChannel {
|
if nil != wsChannel {
|
||||||
|
@ -183,7 +183,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.Tracef("Session [%s] 's running [id=%d, file=%s] has done [stdout %v], ", sid, runningId, filePath, err)
|
logger.Tracef("User [%s, %s] 's running [id=%d, file=%s] has done [stdout %v], ", wSession.Username, sid, runningId, filePath, err)
|
||||||
|
|
||||||
if nil != wsChannel {
|
if nil != wsChannel {
|
||||||
channelRet["cmd"] = "run-done"
|
channelRet["cmd"] = "run-done"
|
||||||
|
|
Loading…
Reference in New Issue