From 2dface044e2f5aa920e9b30cfd9e75b46e560257 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 23 Dec 2014 09:35:29 +0800 Subject: [PATCH] . --- output/outputs.go | 4 ++-- output/processes.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/output/outputs.go b/output/outputs.go index 21dd2d5..492fd0e 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -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"] = "" + buf + "" diff --git a/output/processes.go b/output/processes.go index 88ec622..2b0fa6f 100644 --- a/output/processes.go +++ b/output/processes.go @@ -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 }