From af1686dbe6d0b4672919ec0f83767f29a4654e4a Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 14 Sep 2021 13:37:21 +0530 Subject: [PATCH] Reduce logging verbosity of 'checking routes' Of 18355 lines of logs in a 5day old hub instance, 8228 are just this message. That's 44% of the logs! We now have prometheus metrics to monitor performance of this if needed, and people can always turn on debug logging. --- jupyterhub/proxy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jupyterhub/proxy.py b/jupyterhub/proxy.py index 5f706970..632b527c 100644 --- a/jupyterhub/proxy.py +++ b/jupyterhub/proxy.py @@ -341,10 +341,8 @@ class Proxy(LoggingConfigurable): if not routes: self.log.debug("Fetching routes to check") routes = await self.get_all_routes() - # log info-level that we are starting the route-checking - # this may help diagnose performance issues, - # as we are about - self.log.info("Checking routes") + + self.log.debug("Checking routes") user_routes = {path for path, r in routes.items() if 'user' in r['data']} futures = []