MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / exception

Method exception

lib/sqlalchemy/log.py:169–173  ·  view source on GitHub ↗

Delegate an exception call to the underlying logger.

(self, msg: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

167 self.log(logging.ERROR, msg, *args, **kwargs)
168
169 def exception(self, msg: str, *args: Any, **kwargs: Any) -> None:
170 """Delegate an exception call to the underlying logger."""
171
172 kwargs["exc_info"] = 1
173 self.log(logging.ERROR, msg, *args, **kwargs)
174
175 def critical(self, msg: str, *args: Any, **kwargs: Any) -> None:
176 """Delegate a critical call to the underlying logger."""

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected