Skip to content

Commit

Permalink
chore: add exception info to warning logging
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Jan 5, 2024
1 parent fb9c040 commit cf993b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/setuptools_scm/_integration/pyproject_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def read_pyproject(
if require_section:
raise LookupError(error) from e
else:
log.warning("toml section missing %r", error)
log.warning("toml section missing %r", error, exc_info=True)
section = {}

project = defn.get("project", {})
Expand Down
2 changes: 1 addition & 1 deletion src/setuptools_scm/_integration/setuptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ def infer_version(dist: setuptools.Distribution) -> None:
try:
config = _config.Configuration.from_file(dist_name=dist_name)
except LookupError as e:
log.warning(e)
log.warning(e, exc_info=True)
else:
_assign_version(dist, config)

0 comments on commit cf993b0

Please sign in to comment.