FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-146292: Add colour to `http.server` logs by hugovk · Pull Request #146293 · python/cpython · GitHub

Repository navigation

gh-146292: Add colour to http.server logs - #146293

Merged
ambv merged 8 commits into
python:mainfrom
hugovk:3.15-colour-http.server
Apr 8, 2026
Merged

ambv merged 8 commits into
python:mainfrom
hugovk:3.15-colour-http.server

Conversation

hugovk commented Mar 22, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

Taking inspiration from the make dev logs for the new blog (https://github.com/python/python-insider-blog):

Let's add colour to the http.server log output:

As usual, this respects the environment variables to control colour and the output stream's capabilities.


📚 Documentation preview 📚: https://cpython-previews--146293.org.readthedocs.build/

Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Doc/whatsnew/3.15.rst Outdated
Comment thread Doc/whatsnew/3.15.rst Outdated
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Comment thread Lib/test/test_httpservers.py Outdated
Comment thread Lib/http/server.py
Comment thread Lib/_colorize.py Outdated
Comment thread Lib/_colorize.py

hugovk commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

@picnixz @brianschubert Thanks for the reviews! Any further comments?

AlexWaygood removed their request for review April 6, 2026 21:43
ambv merged commit 2c8f26c into python:main Apr 8, 2026
60 checks passed
hugovk deleted the 3.15-colour-http.server branch April 8, 2026 12:25
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL