Skip to content

Commit

Permalink
Fixes typo "extras" for "extra" in ColourizedFormatter docstring. (#2491
Browse files Browse the repository at this point in the history
)

extra={"color_message": message} is the correct usage.
  • Loading branch information
bwells authored Nov 20, 2024
1 parent 6215230 commit b7241e1
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 b7241e1

Please sign in to comment.