Remove unnecessary log output

This commit is contained in:
Kevin Kreitner
2021-12-03 23:06:42 +00:00
committed by Joel Speed
parent a8de9862cd
commit d8663a19a9
+1 -7
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