summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrad Jones <brad@bradjones.name>2022-02-09 13:56:33 -0700
committerGitHub <noreply@github.com>2022-02-09 20:56:33 +0000
commit3914576b2b6272a4be790c89d87649d257018dcf (patch)
treed00b42eef712ecfd98db372cec9fe44b983220d5
parentUpdate changelog from #11867 to be a single line. (diff)
downloadsynapse-3914576b2b6272a4be790c89d87649d257018dcf.tar.xz
Fix example for structured logging. (#11946)
The StreamHandler takes a stream parameter, not location.
-rw-r--r--changelog.d/11946.doc1
-rw-r--r--docs/structured_logging.md2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/11946.doc b/changelog.d/11946.doc
new file mode 100644
index 0000000000..eedf035a3b
--- /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 b1281667e0..14db85f587 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