diff options
author | 2018-04-19 07:41:56 +0100 | |
---|---|---|
committer | 2018-04-19 07:41:56 +0100 | |
commit | 26d1432ae6c19c91fb6358e7629a9179a85b70f7 (patch) | |
tree | 8a9f94cf11dcebf1f079ab478d4ded4bf710c99f /plugin/metrics/metrics.go | |
parent | 2095eb7979f53618180f759d0e68e4070554870d (diff) | |
download | coredns-26d1432ae6c19c91fb6358e7629a9179a85b70f7.tar.gz coredns-26d1432ae6c19c91fb6358e7629a9179a85b70f7.tar.zst coredns-26d1432ae6c19c91fb6358e7629a9179a85b70f7.zip |
Update all plugins to use plugin/pkg/log (#1694)
* Update all plugins to use plugin/pkg/log
I wish this could have been done with sed. Alas manually changed all
callers to use the new plugin/pkg/log package.
* Error -> Info
* Add docs to debug plugin as well
Diffstat (limited to 'plugin/metrics/metrics.go')
-rw-r--r-- | plugin/metrics/metrics.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/metrics/metrics.go b/plugin/metrics/metrics.go index e16749fc0..d52b6717a 100644 --- a/plugin/metrics/metrics.go +++ b/plugin/metrics/metrics.go @@ -2,7 +2,6 @@ package metrics import ( - "log" "net" "net/http" "os" @@ -12,6 +11,7 @@ import ( "github.com/coredns/coredns/coremain" "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin/metrics/vars" + "github.com/coredns/coredns/plugin/pkg/log" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" @@ -88,7 +88,7 @@ func (m *Metrics) ZoneNames() []string { func (m *Metrics) OnStartup() error { ln, err := net.Listen("tcp", m.Addr) if err != nil { - log.Printf("[ERROR] Failed to start metrics handler: %s", err) + log.Errorf("Failed to start metrics handler: %s", err) return err } |