diff options
author | 2018-04-27 21:50:24 +0100 | |
---|---|---|
committer | 2018-04-27 21:50:24 +0100 | |
commit | 82d3195f2f593898b6869b0da6c436af3a93665a (patch) | |
tree | 22090d38068836a49dfcb5b98c718fe10abd7e76 | |
parent | bfc647d4edf4e6033e5fc6c7a9d4ddce1b3ddd76 (diff) | |
download | coredns-82d3195f2f593898b6869b0da6c436af3a93665a.tar.gz coredns-82d3195f2f593898b6869b0da6c436af3a93665a.tar.zst coredns-82d3195f2f593898b6869b0da6c436af3a93665a.zip |
pkg/log usage in coremain as well (#1751)
-rw-r--r-- | coremain/run.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/coremain/run.go b/coremain/run.go index 534ebb607..c0e944567 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -12,9 +12,10 @@ import ( "strconv" "strings" - "github.com/mholt/caddy" - "github.com/coredns/coredns/core/dnsserver" + clog "github.com/coredns/coredns/plugin/pkg/log" + + "github.com/mholt/caddy" ) func init() { @@ -156,8 +157,8 @@ func defaultLoader(serverType string) (caddy.Input, error) { // logVersion logs the version that is starting. func logVersion() { - log.Print("[INFO] " + versionString()) - log.Print("[INFO] " + releaseString()) + clog.Info(versionString()) + clog.Info(releaseString()) } // showVersion prints the version that is starting. |