1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-05-27 23:08:10 +02:00

Remove unnecessary log output

This commit is contained in:
Kevin Kreitner 2021-09-29 17:20:09 +02:00 committed by Joel Speed
parent a8de9862cd
commit d8663a19a9
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB

View File

@ -137,13 +137,7 @@ func (s *storedSessionLoader) refreshSessionIfNeeded(rw http.ResponseWriter, req
}
logger.Printf("Refreshing session - User: %s; SessionAge: %s", session.User, session.Age())
err = s.refreshSession(rw, req, session)
if err != nil {
// If a preemptive refresh fails, we still keep the session
// if validateSession succeeds.
logger.Errorf("Unable to refresh session: %v", err)
}
return err
return s.refreshSession(rw, req, session)
}
// refreshSession attempts to refresh the session with the provider