From 296c5a0c1c185250c72875ccfe137afc8b6a5b63 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 11 Sep 2017 06:51:24 +0100 Subject: [PATCH] mw/errors: doc (#1057) Remove the [FILE] option from the docs, we still allow it, but this one value that we allow now *stdout* isn't shown anymore. Also test the snippet with readme_test.go by adding `~~ corefile`. --- middleware/errors/README.md | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/middleware/errors/README.md b/middleware/errors/README.md index 53ac5bacf..21b8f4848 100644 --- a/middleware/errors/README.md +++ b/middleware/errors/README.md @@ -2,26 +2,21 @@ *errors* enables error logging. -Any errors encountered during the query processing will be printed on standard output. +Any errors encountered during the query processing will be printed to standard output. ## Syntax -~~~ -errors [FILE] -~~~ - -* **FILE** is the log file to create (or append to). The *only* valid name for **FILE** is *stdout* - -## Examples - -Log errors to *stdout*. - ~~~ errors ~~~ -Log errors to *stdout*. +## Examples -~~~ -errors stdout +Use the *whoami* to respond to queries and Log errors to standard output. + +~~~ corefile +. { + whoami + errors +} ~~~