Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Mar 1, 2023
1 parent b5886e1 commit 71bdece
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sage_docbuild/ext/sage_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,15 @@ def format_signature(self, **kwargs: Any) -> str:
self.fullname, exc, type='autodoc')
args = None

result = self.env.events.emit_firstresult('autodoc-process-signature',
try:
result = self.env.events.emit_firstresult('autodoc-process-signature',
self.objtype, self.fullname,
self.object, self.options, args, retann)
except Exception:
signature = inspect.signature(self.object)
logger.warning(f"signature: {signature}")
raise

if result:
args, retann = result

Expand Down

0 comments on commit 71bdece

Please sign in to comment.