MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Debug

Method Debug

app/controlplane/pkg/data/ent/client.go:277–286  ·  view source on GitHub ↗

Debug returns a new debug-client. It's used to get verbose logging on specific operations. client.Debug(). APIToken. Query(). Count(ctx)

()

Source from the content-addressed store, hash-verified

275// Query().
276// Count(ctx)
277func (c *Client) Debug() *Client {
278 if c.debug {
279 return c
280 }
281 cfg := c.config
282 cfg.driver = dialect.Debug(c.driver, c.log)
283 client := &Client{config: cfg}
284 client.init()
285 return client
286}
287
288// Close closes the database connection and prevents new queries from starting.
289func (c *Client) Close() error {

Callers 15

SweepMethod · 0.45
checkBackendsMethod · 0.45
optionsMethod · 0.45
errorInfoFunction · 0.45
RunMethod · 0.45
RunMethod · 0.45
verifyBundleFunction · 0.45
RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45

Calls 1

initMethod · 0.95

Tested by

no test coverage detected