Commit 95ad63e5 by Iwasaki Yudai

Merge pull request #77 from moul/log-args

Log passed arguments
2 parents 6013e439 d56157f1
Showing with 1 additions and 1 deletions
......@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!