From 3914576b2b6272a4be790c89d87649d257018dcf Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Wed, 9 Feb 2022 13:56:33 -0700 Subject: [PATCH] Fix example for structured logging. (#11946) The StreamHandler takes a stream parameter, not location. --- changelog.d/11946.doc | 1 + docs/structured_logging.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/11946.doc diff --git a/changelog.d/11946.doc b/changelog.d/11946.doc new file mode 100644 index 000000000..eedf035a3 --- /dev/null +++ b/changelog.d/11946.doc @@ -0,0 +1 @@ +Correct the structured logging configuration example. Contributed by Brad Jones. diff --git a/docs/structured_logging.md b/docs/structured_logging.md index b1281667e..14db85f58 100644 --- a/docs/structured_logging.md +++ b/docs/structured_logging.md @@ -141,7 +141,7 @@ formatters: handlers: console: class: logging.StreamHandler - location: ext://sys.stdout + stream: ext://sys.stdout file: class: logging.FileHandler formatter: json