MCPcopy Index your code
hub / github.com/VictoriaMetrics/VictoriaLogs / LogError

Function LogError

lib/httpserver/httpserver.go:777–781  ·  view source on GitHub ↗

LogError logs the errStr with the context from req.

(req *http.Request, errStr string)

Source from the content-addressed store, hash-verified

775
776// LogError logs the errStr with the context from req.
777func LogError(req *http.Request, errStr string) {
778 uri := GetRequestURI(req)
779 remoteAddr := GetQuotedRemoteAddr(req)
780 logger.Errorf("uri: %s, remote address: %q: %s", uri, remoteAddr, errStr)
781}

Callers 2

InsertHandlerFunction · 0.92
InsertHandlerFunction · 0.92

Calls 3

ErrorfFunction · 0.92
GetRequestURIFunction · 0.85
GetQuotedRemoteAddrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…