Logo
Explore Help
Sign In
Mirrors/coredns
1
0
Fork 0
You've already forked coredns
mirror of https://github.com/coredns/coredns.git synced 2025-11-04 11:13:16 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
33234a2319e1455b6f79a2b1525d6f0a2f7ac30f
coredns/plugin/hosts/log_test.go

6 lines
103 B
Go
Raw Normal View History

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
package hosts
import clog "github.com/coredns/coredns/plugin/pkg/log"
func init() { clog.Discard() }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 65ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API