Fixed #33058 --added a custom logger for DiscoverRunner #20000
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trac ticket number
ticket-33058
Branch description
Based on your changes for ticket #33058, here's what you need:
main
2. Commit message
Fixed #33058 -- Added logging support for check command output in test runner.
3. Trac ticket flag
URL: https://code.djangoproject.com/ticket/33058
Check the "Has patch" checkbox
4. Tests
File: tests/test_runner/test_discover_runner.py
Tests needed for:
run_checks() method captures and logs output correctly
_get_or_create_check_logger() method creates proper loggers
Custom loggers are used when provided
Default loggers are created when none exist
5. Documentation and release notes
File: docs/releases/6.1.txt
Location: Under "Tests" section (around line 279)
Content to add:
~django.test.DiscoverRunnernow routes system check outputthrough the logging system, allowing better control over test output
formatting and capture.