Skip to content

Commit

Permalink
Reduce amount of logging when applying group overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed May 24, 2024
1 parent 30ebf84 commit 2623aa5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jupyterhub/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1517,15 +1517,6 @@ def _apply_overrides(self, spawner_override: dict):
for k, v in spawner_override.items():
if callable(v):
v = v(self)
self.log.info(
f".. overriding {self.__class__.__name__} value %s=%s (callable result)",
k,
v,
)
else:
self.log.info(
f".. overriding {self.__class__.__name__} value %s=%s", k, v
)

# If v is a dict, *merge* it with existing values, rather than completely
# resetting it. This allows *adding* things like environment variables rather
Expand All @@ -1551,6 +1542,7 @@ async def apply_group_overrides(self):
# If there is *any* overlap between the groups user is in
# and the groups for this override, apply overrides
self._apply_overrides(go['spawner_override'])
self.log.info(f"Applying group_override {key} for {self.user.name}, modifying config keys: {' '.join(go['spawner_override'].keys())}")


def _try_setcwd(path):
Expand Down

0 comments on commit 2623aa5

Please sign in to comment.