Skip to content

Commit

Permalink
pkg/log usage in coremain as well (coredns#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg authored Apr 27, 2018
1 parent bfc647d commit 82d3195
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions coremain/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 82d3195

Please sign in to comment.