MCPcopy Create free account
hub / github.com/netlify/gotrue / getLogEntry

Function getLogEntry

api/log.go:59–65  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

57}
58
59func getLogEntry(r *http.Request) logrus.FieldLogger {
60 entry, _ := chimiddleware.GetLogEntry(r).(*structuredLoggerEntry)
61 if entry == nil {
62 return logrus.NewEntry(logrus.StandardLogger())
63 }
64 return entry.Logger
65}
66
67func logEntrySetField(r *http.Request, key string, value interface{}) logrus.FieldLogger {
68 if entry, ok := r.Context().Value(chimiddleware.LogEntryCtxKey).(*structuredLoggerEntry); ok {

Callers 6

redirectErrorsMethod · 0.85
oAuthCallbackMethod · 0.85
UserUpdateMethod · 0.85
recovererFunction · 0.85
handleErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…