MCPcopy
hub / github.com/redis/go-redis / MetricsHookRecordedError

Function MetricsHookRecordedError

internal/maintnotifications/logs/log_messages.go:555–562  ·  view source on GitHub ↗
(notificationType string, connID uint64, err error)

Source from the content-addressed store, hash-verified

553}
554
555func MetricsHookRecordedError(notificationType string, connID uint64, err error) string {
556 message := fmt.Sprintf("%s for %s notification on conn[%d]: %v", MetricsHookRecordedErrorMessage, notificationType, connID, err)
557 return appendJSONIfDebug(message, map[string]interface{}{
558 "notificationType": notificationType,
559 "connID": connID,
560 "error": err.Error(),
561 })
562}
563
564// Pool hook functions
565func MarkedForHandoff(connID uint64) string {

Callers 1

PostHookMethod · 0.92

Calls 2

appendJSONIfDebugFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected