MCPcopy Create free account
hub / github.com/cloudwan/gohan / logRequest

Method logRequest

cli/client/client.go:298–303  ·  view source on GitHub ↗
(method, url, tokenID string, args map[string]interface{})

Source from the content-addressed store, hash-verified

296}
297
298func (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
305func (gohanClientCLI *GohanClientCLI) logResponse(status string, body interface{}) {
306 log.Notice("Received response: %s", status)

Callers 3

requestMethod · 0.95
getResourceIDMethod · 0.95
getSchemasMethod · 0.95

Calls 3

NoticeMethod · 0.65
DebugMethod · 0.65
InfoMethod · 0.65

Tested by

no test coverage detected