MCPcopy Create free account
hub / github.com/hynek/structlog / exception

Method exception

src/structlog/stdlib.py:702–711  ·  view source on GitHub ↗
(self, event: str, *args: Any, **kw: Any)

Source from the content-addressed store, hash-verified

700 await self._dispatch_to_sync(self.sync_bl.critical, event, args, kw)
701
702 async def exception(self, event: str, *args: Any, **kw: Any) -> None:
703 # To make `log.exception("foo") work, we have to check if the user
704 # passed an explicit exc_info and if not, supply our own.
705 ei = kw.pop("exc_info", None)
706 if ei is None and kw.get("exception") is None:
707 ei = sys.exc_info()
708
709 kw["exc_info"] = ei
710
711 await self._dispatch_to_sync(self.sync_bl.exception, event, args, kw)
712
713 async def log(self, level: Any, event: str, *args: Any, **kw: Any) -> None:
714 await self._dispatch_to_sync(

Callers

nothing calls this directly

Calls 1

_dispatch_to_syncMethod · 0.95

Tested by

no test coverage detected