mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
Remove a couple every-request debug statements
logging all scopes every request and for every user model retrieval gets noisy
This commit is contained in:
@@ -223,11 +223,6 @@ class APIHandler(BaseHandler):
|
|||||||
'read:roles:users': {'kind', 'name', 'roles', 'admin'},
|
'read:roles:users': {'kind', 'name', 'roles', 'admin'},
|
||||||
'admin:auth_state': {'kind', 'name', 'auth_state'},
|
'admin:auth_state': {'kind', 'name', 'auth_state'},
|
||||||
}
|
}
|
||||||
self.log.debug(
|
|
||||||
"Asking for user model of %s with scopes [%s]",
|
|
||||||
user.name,
|
|
||||||
", ".join(self.expanded_scopes),
|
|
||||||
)
|
|
||||||
allowed_keys = set()
|
allowed_keys = set()
|
||||||
model = self._filter_model(
|
model = self._filter_model(
|
||||||
model, access_map, user, kind='user', keys=allowed_keys
|
model, access_map, user, kind='user', keys=allowed_keys
|
||||||
|
@@ -425,7 +425,6 @@ class BaseHandler(RequestHandler):
|
|||||||
|
|
||||||
def _resolve_roles_and_scopes(self):
|
def _resolve_roles_and_scopes(self):
|
||||||
self.expanded_scopes = set()
|
self.expanded_scopes = set()
|
||||||
app_log.debug("Loading and parsing scopes")
|
|
||||||
if self.current_user:
|
if self.current_user:
|
||||||
orm_token = self.get_token()
|
orm_token = self.get_token()
|
||||||
if orm_token:
|
if orm_token:
|
||||||
@@ -433,7 +432,6 @@ class BaseHandler(RequestHandler):
|
|||||||
else:
|
else:
|
||||||
self.expanded_scopes = scopes.get_scopes_for(self.current_user)
|
self.expanded_scopes = scopes.get_scopes_for(self.current_user)
|
||||||
self.parsed_scopes = scopes.parse_scopes(self.expanded_scopes)
|
self.parsed_scopes = scopes.parse_scopes(self.expanded_scopes)
|
||||||
app_log.debug("Found scopes [%s]", ",".join(self.expanded_scopes))
|
|
||||||
|
|
||||||
@functools.lru_cache()
|
@functools.lru_cache()
|
||||||
def get_scope_filter(self, req_scope):
|
def get_scope_filter(self, req_scope):
|
||||||
|
Reference in New Issue
Block a user