mirror of
https://github.com/yudai/gotty.git
synced 2025-12-28 13:18:50 +01:00
Log passed arguments
i.e:
2015/10/12 18:14:11 127.0.0.1:56983 200 GET /auth_token.js
2015/10/12 18:14:11 New client connected: 127.0.0.1:56984
2015/10/12 18:14:11 127.0.0.1:56984 passed arguments are: "--server_id XXXXXXXXXXXXXXX --type serial --auth_token YYYYYYYYYYYYYYYY"
2015/10/12 18:14:11 Command is running for client 127.0.0.1:56984 with PID 95770
2015/10/12 18:14:11 127.0.0.1:56984 101 GET /ws
2015/10/12 18:14:11 Command exited for: 127.0.0.1:56984
This commit is contained in:
parent
f7b54e9e5a
commit
788c9942ad
1 changed files with 1 additions and 0 deletions
|
|
@ -317,6 +317,7 @@ func (app *App) handleWS(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
params := query.Query()["arg"]
|
||||
if len(params) != 0 {
|
||||
log.Printf("%s passed arguments are: %q", r.RemoteAddr, strings.Join(params, " "))
|
||||
argv = append(argv, params...)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue