forked from tangled.org/core
this repo has no description

appview/middleware: a little less logging

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 025f751c 7ddfed41

verified
Changed files
+1 -5
appview
middleware
+1 -5
appview/middleware/middleware.go
···
func (mw *Middleware) TryRefreshSession() middlewareFunc {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
-
_, auth, err := mw.oauth.GetSession(r)
-
if err != nil {
-
log.Println("could not refresh session", "err", err, "auth", auth)
-
}
-
next.ServeHTTP(w, r)
})
}
···
func (mw *Middleware) TryRefreshSession() middlewareFunc {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+
_, _, _ = mw.oauth.GetSession(r)
next.ServeHTTP(w, r)
})
}