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>
Showing
core/dnsserver/log_test.go
0 → 100644
plugin/auto/log_test.go
0 → 100644
plugin/bind/log_test.go
0 → 100644
plugin/cache/log_test.go
0 → 100644
plugin/chaos/log_test.go
0 → 100644
plugin/debug/log_test.go
0 → 100644
plugin/dnssec/log_test.go
0 → 100644
plugin/dnstap/log_test.go
0 → 100644
plugin/erratic/log_test.go
0 → 100644
plugin/errors/log_test.go
0 → 100644
plugin/etcd/log_test.go
0 → 100644
plugin/file/log_test.go
0 → 100644
plugin/forward/log_test.go
0 → 100644
plugin/health/log_test.go
0 → 100644
plugin/hosts/log_test.go
0 → 100644
plugin/log_test.go
0 → 100644
plugin/metadata/log_test.go
0 → 100644
plugin/metrics/log_test.go
0 → 100644
plugin/nsid/log_test.go
0 → 100644
plugin/pprof/log_test.go
0 → 100644
plugin/proxy/log_test.go
0 → 100644
plugin/reload/log_test.go
0 → 100644
plugin/rewrite/log_test.go
0 → 100644
plugin/root/log_test.go
0 → 100644
plugin/route53/log_test.go
0 → 100644
plugin/secondary/log_test.go
0 → 100644
plugin/template/log_test.go
0 → 100644
plugin/tls/log_test.go
0 → 100644
plugin/trace/log_test.go
0 → 100644
plugin/whoami/log_test.go
0 → 100644
test/log_test.go
0 → 100644
Please register or sign in to comment