Skip to content

Commit

Permalink
Fixes typo "extras" for "extra" in ColourizedFormatter docstring.
Browse files Browse the repository at this point in the history
extra={"color_message": message} is the correct usage.
  • Loading branch information
bwells committed Oct 22, 2024
1 parent fe39100 commit cce4676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ColourizedFormatter(logging.Formatter):
A custom log formatter class that:
* Outputs the LOG_LEVEL with an appropriate color.
* If a log call includes an `extras={"color_message": ...}` it will be used
* If a log call includes an `extra={"color_message": ...}` it will be used
for formatting the output, instead of the plain text message.
"""

Expand Down

0 comments on commit cce4676

Please sign in to comment.