Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix example for structured logging. (#11946)
Browse files Browse the repository at this point in the history
The StreamHandler takes a stream parameter, not location.
  • Loading branch information
bradjones1 authored Feb 9, 2022
1 parent 0408d69 commit 3914576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11946.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct the structured logging configuration example. Contributed by Brad Jones.
2 changes: 1 addition & 1 deletion docs/structured_logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ formatters:
handlers:
console:
class: logging.StreamHandler
location: ext://sys.stdout
stream: ext://sys.stdout
file:
class: logging.FileHandler
formatter: json
Expand Down

0 comments on commit 3914576

Please sign in to comment.