MCPcopy Create free account
hub / github.com/imroc/req / SetDebug

Method SetDebug

examples/opentelemetry-jaeger-tracing/github/github.go:183–192  ·  view source on GitHub ↗

SetDebug enable debug if set to true, disable debug if set to false.

(enable bool)

Source from the content-addressed store, hash-verified

181
182// SetDebug enable debug if set to true, disable debug if set to false.
183func (c *Client) SetDebug(enable bool) *Client {
184 if enable {
185 c.EnableDebugLog()
186 c.EnableDumpAll()
187 } else {
188 c.DisableDebugLog()
189 c.DisableDumpAll()
190 }
191 return c
192}

Callers 1

mainFunction · 0.45

Calls 4

EnableDebugLogMethod · 0.95
EnableDumpAllMethod · 0.95
DisableDebugLogMethod · 0.95
DisableDumpAllMethod · 0.95

Tested by

no test coverage detected