From 2623aa5e463d4354e110f1d1161c4eb043526397 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 24 May 2024 07:22:41 -0700 Subject: [PATCH] Reduce amount of logging when applying group overrides --- jupyterhub/spawner.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/jupyterhub/spawner.py b/jupyterhub/spawner.py index 866798278..5ed28241a 100644 --- a/jupyterhub/spawner.py +++ b/jupyterhub/spawner.py @@ -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 @@ -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):