coredns/plugin/errors
Miek Gieben f3134da45e
Clean up tests logging (#1979)
* Clean up tests logging

This cleans up the travis logs so you can see the failures better.

Older tests in tests/ would call log.SetOutput(ioutil.Discard) in
a haphazard way. This add log.Discard and put an `init` function in each
package's dir (no way to do this globally). The cleanup in tests/ is
clear.

All plugins also got this init function to have some uniformity and kill
any (future) logging there in the tests as well.

There is a one-off in pkg/healthcheck because that does log.

Signed-off-by: Miek Gieben <miek@miek.nl>

* bring back original log_test.go

Signed-off-by: Miek Gieben <miek@miek.nl>

* suppress logging here as well

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-19 16:23:06 +01:00
..
errors.go plugin/errors: remove panic/recover (#1777) 2018-05-09 19:04:46 -07:00
errors_test.go plugin/errors: remove panic/recover (#1777) 2018-05-09 19:04:46 -07:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
OWNERS Add OWNERS file (#1486) 2018-02-08 10:55:51 +00:00
README.md return an error for multiple use of some plugins (#1559) 2018-02-28 18:16:05 -08:00
setup.go plugin/errors: remove panic/recover (#1777) 2018-05-09 19:04:46 -07:00
setup_test.go plugin/errors: remove panic/recover (#1777) 2018-05-09 19:04:46 -07:00

errors

Name

errors - enable error logging.

Description

Any errors encountered during the query processing will be printed to standard output.

This plugin can only be used once per Server Block.

Syntax

errors

Examples

Use the whoami to respond to queries and Log errors to standard output.

. {
    whoami
    errors
}