Skip to content

Commit b7241e1

Browse files
authored
Fixes typo "extras" for "extra" in ColourizedFormatter docstring. (#2491)
extra={"color_message": message} is the correct usage.
1 parent 6215230 commit b7241e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvicorn/logging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ColourizedFormatter(logging.Formatter):
1616
A custom log formatter class that:
1717
1818
* Outputs the LOG_LEVEL with an appropriate color.
19-
* If a log call includes an `extras={"color_message": ...}` it will be used
19+
* If a log call includes an `extra={"color_message": ...}` it will be used
2020
for formatting the output, instead of the plain text message.
2121
"""
2222

0 commit comments

Comments
 (0)