From 6deef050582671fb235114729d6603ea85d43a20 Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Sun, 13 Oct 2024 08:38:37 +0200 Subject: [PATCH] Log AttributeError in viewcode as debug This message is very common and part of normal operation This makes it dominate verbose output without adding value --- sphinx/ext/viewcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index 9991cf5d426..6c7620639d7 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -64,8 +64,8 @@ def _get_full_modname(modname: str, attribute: str) -> str | None: return getattr(value, '__module__', None) except AttributeError: # sphinx.ext.viewcode can't follow class instance attribute - # then AttributeError logging output only verbose mode. - logger.verbose("Didn't find %s in %s", attribute, modname) + # then AttributeError logging output only debug mode. + logger.debug("Didn't find %s in %s", attribute, modname) return None except Exception as e: # sphinx.ext.viewcode follow python domain directives.