- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for LogOf (0.07 sec)
-
staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go
func newLogged(req *http.Request, w http.ResponseWriter) *respLogger { return newLoggedWithStartTime(req, w, time.Now()) } // LogOf returns the logger hiding in w. If there is not an existing logger // then a passthroughLogger will be created which will log to stdout immediately // when Addf is called. func LogOf(req *http.Request, w http.ResponseWriter) logger { if rl := respLoggerFromRequest(req); rl != nil { return rl }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 10:10:35 UTC 2023 - 9.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/httplog/httplog_test.go
if err != nil { t.Errorf("Unexpected error: %v", err) } var handler http.Handler handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { got := reflect.TypeOf(LogOf(r, w)).String() if test.want != got { t.Errorf("Expected %v, got %v", test.want, got) } }) handler = withLogging(handler, DefaultStacktracePred, func() bool { return test.shouldLogRequest })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 05 18:05:09 UTC 2021 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation.go
Name: username, Groups: groups, Extra: userExtra, UID: uid, } req = req.WithContext(request.WithUser(ctx, newUser)) oldUser, _ := request.UserFrom(ctx) httplog.LogOf(req, w).Addf("%v is impersonating %v", userString(oldUser), userString(newUser)) ae := audit.AuditEventFrom(ctx) audit.LogImpersonatedUser(ae, newUser) // clear all the impersonation headers from the request
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 10:10:35 UTC 2023 - 9.5K bytes - Viewed (0)