Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- fix #324: document/recommend the v tag prefix
- fix #501: add py.typed
- fix #804: git - use fallback version instead of 0.0 when no version is found at all
- fix #1139: use logging.lastResort instead of a own replica to avoid polluting logging._handlerList

## v8.3.1

Expand Down
6 changes: 3 additions & 3 deletions src/setuptools_scm/_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def make_default_handler() -> logging.Handler:

return RichHandler(console=console)
except ImportError:
handler = AlwaysStdErrHandler()
handler.setFormatter(logging.Formatter("%(levelname)s %(name)s %(message)s"))
return handler
last_resort = logging.lastResort
assert last_resort is not None
return last_resort


_default_handler = make_default_handler()
Expand Down
Loading