Skip to content

Commit

Permalink
Use debug log level for AttributeErrors in viewcode (#13016)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen authored Nov 22, 2024
1 parent 1deaf85 commit 92210f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/ext/viewcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,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.
Expand Down

0 comments on commit 92210f5

Please sign in to comment.