Skip to content

Commit 92210f5

Browse files
authored
Use debug log level for AttributeErrors in viewcode (#13016)
1 parent 1deaf85 commit 92210f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/ext/viewcode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def _get_full_modname(modname: str, attribute: str) -> str | None:
6565
return getattr(value, '__module__', None)
6666
except AttributeError:
6767
# sphinx.ext.viewcode can't follow class instance attribute
68-
# then AttributeError logging output only verbose mode.
69-
logger.verbose("Didn't find %s in %s", attribute, modname)
68+
# then AttributeError logging output only debug mode.
69+
logger.debug("Didn't find %s in %s", attribute, modname)
7070
return None
7171
except Exception as e:
7272
# sphinx.ext.viewcode follow python domain directives.

0 commit comments

Comments
 (0)