MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / GetLogFromCtx

Function GetLogFromCtx

internal/util/util.go:28–31  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

26}
27
28func GetLogFromCtx(c *gin.Context) *zap.Logger {
29 logWithCid := c.Request.Context().Value(STRING_LOG).(*zap.Logger)
30 return logWithCid
31}
32
33func ConvertAnyToStr(input any) (string, error) {
34 converted := ""

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected