aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/metrics/metrics.go')
-rw-r--r--plugin/metrics/metrics.go4
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
}