Merge pull request #77 from moul/log-args

Log passed arguments
This commit is contained in:
Iwasaki Yudai 2015-10-13 12:56:38 -07:00
commit 95ad63e5ae

View File

@ -340,7 +340,7 @@ func (app *App) handleWS(w http.ResponseWriter, r *http.Request) {
log.Print("Failed to execute command")
return
}
log.Printf("Command is running for client %s with PID %d", r.RemoteAddr, cmd.Process.Pid)
log.Printf("Command is running for client %s with PID %d (args=%q)", r.RemoteAddr, cmd.Process.Pid, strings.Join(argv, " "))
context := &clientContext{
app: app,