coredns/plugin/dnstap/dnstapio
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
..
dnstap_encoder.go Increase performance of Dnstap plugin (#1280) 2017-12-06 10:36:04 +00:00
dnstap_encoder_test.go presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
io.go Use logging (#1718) 2018-04-22 21:40:33 +01:00
io_test.go presubmit: check for uppercase (#1774) 2018-05-07 23:47:25 +02:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00