(method, url, tokenID string, args map[string]interface{})
| 296 | } |
| 297 | |
| 298 | func (gohanClientCLI *GohanClientCLI) logRequest(method, url, tokenID string, args map[string]interface{}) { |
| 299 | log.Notice("Sent request: %s %s", method, url) |
| 300 | log.Debug("X-Auth-Token: %s", tokenID) |
| 301 | jsonArgs, _ := json.MarshalIndent(args, "", " ") |
| 302 | log.Info("Request body:\n %s", jsonArgs) |
| 303 | } |
| 304 | |
| 305 | func (gohanClientCLI *GohanClientCLI) logResponse(status string, body interface{}) { |
| 306 | log.Notice("Received response: %s", status) |
no test coverage detected