MCPcopy Index your code
hub / github.com/bytebase/bytebase / BBError

Function BBError

backend/common/log/log.go:39–41  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

37}
38
39func BBError(err error) slog.Attr {
40 return slog.String("error", fmt.Sprintf("%+v", err))
41}
42
43func BBStack(key string) slog.Attr {
44 stack := stacktrace.TakeStacktrace(20 /* n */, 3 /* skip */)

Callers 15

ExchangeTokenMethod · 0.92
UserInfoMethod · 0.92
ValidateSQLForEditorFunction · 0.92
getQuerySpanImplFunction · 0.92
CancelSubscriptionFunction · 0.92
refundCustomerBalanceFunction · 0.92
GetPromotionDiscountFunction · 0.92
GetPromotionByCodeFunction · 0.92
CheckFunction · 0.92
DatabaseExistsFunction · 0.92
CheckMethod · 0.92
LogComputeDiffStartMethod · 0.92

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected