-
-
Notifications
You must be signed in to change notification settings - Fork 59
Labels
good first issueNew-contributor friendlyNew-contributor friendlyhelp wantedOpen to participation from the communityOpen to participation from the community🏁 status: ready for workReady for workReady for work💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🕹 aspect: interfaceConcerns end-users' experience with the softwareConcerns end-users' experience with the software🛠 goal: fixBug fixBug fix🟩 priority: lowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed🤖 aspect: dxConcerns developers' experience with the codebaseConcerns developers' experience with the codebase
Description
Description
Logging outputs to sys.stderr instead of sys.stdout.
Expectation
Acceptable
All to sys.stdout. It makes a better default because output can be piped without redirection.
| Log level | Output |
|---|---|
logging.DEBUG |
sys.stdout |
logging.INFO |
sys.stdout |
logging.WARNING |
sys.stdout |
logging.ERROR |
sys.stdout |
logging.CRITICAL |
sys.stdout |
Best
All to sys.stdout except error and critical to sys.stderr. Warning goes to sys.stdout because script execution should not stop on warnings.
| Log level | Output |
|---|---|
logging.DEBUG |
sys.stdout |
logging.INFO |
sys.stdout |
logging.WARNING |
sys.stdout |
logging.ERROR |
sys.stderr |
logging.CRITICAL |
sys.stderr |
Environment
Line 34 in b023018
| python_version = "3.11" |
Additional context
- Logging is configured in
scripts/shared.py - logging — Logging facility for Python — Python 3.11 documentation
Resolution
- I would be interested in resolving this bug.
Sub-issues
Metadata
Metadata
Assignees
Labels
good first issueNew-contributor friendlyNew-contributor friendlyhelp wantedOpen to participation from the communityOpen to participation from the community🏁 status: ready for workReady for workReady for work💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🕹 aspect: interfaceConcerns end-users' experience with the softwareConcerns end-users' experience with the software🛠 goal: fixBug fixBug fix🟩 priority: lowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed🤖 aspect: dxConcerns developers' experience with the codebaseConcerns developers' experience with the codebase
Type
Projects
Status
Backlog