This commit is contained in:
Liang Ding 2014-12-30 11:02:09 +08:00
parent a5666c5b5e
commit edbecccec3
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ func (procs *procs) kill(wSession *session.WideSession, pid int) {
for i, p := range userProcesses { for i, p := range userProcesses {
if p.Pid == pid { if p.Pid == pid {
if err := p.Kill(); nil != err { if err := p.Kill(); nil != err {
logger.Error("Kill a process [pid=%d] of session [%s] failed [error=%v]", pid, sid, err) logger.Error("Kill a process [pid=%d] of user [%s, %s] failed [error=%v]", pid, wSession.Username, sid, err)
} else { } else {
var newProcesses []*os.Process var newProcesses []*os.Process
@ -96,7 +96,7 @@ func (procs *procs) kill(wSession *session.WideSession, pid int) {
// bind process with wide session // bind process with wide session
wSession.SetProcesses(newProcesses) wSession.SetProcesses(newProcesses)
logger.Debugf("Killed a process [pid=%d] of session [%s]", pid, sid) logger.Debugf("Killed a process [pid=%d] of user [%s, %s]", pid, wSession.Username, sid)
} }
return return