From b7241e1c64b8e10f56191d2836fa386ad3e56681 Mon Sep 17 00:00:00 2001 From: Brad Wells Date: Wed, 20 Nov 2024 13:21:19 -0700 Subject: [PATCH] Fixes typo "extras" for "extra" in ColourizedFormatter docstring. (#2491) extra={"color_message": message} is the correct usage. --- uvicorn/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvicorn/logging.py b/uvicorn/logging.py index ab6261d14..02f455d8e 100644 --- a/uvicorn/logging.py +++ b/uvicorn/logging.py @@ -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. """