aboutsummaryrefslogtreecommitdiff
path: root/core/coredns.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-09-10 09:16:25 +0100
committerGravatar GitHub <noreply@github.com> 2016-09-10 09:16:25 +0100
commit2dd8a687b340e5ef7afa4bbe8802f25372b25cf9 (patch)
tree3be78c3e5f9f80cef1c602b2c1be0804c92e01bc /core/coredns.go
parent5216ab6b581165ae54b5d3462e3e63d460317cf3 (diff)
downloadcoredns-2dd8a687b340e5ef7afa4bbe8802f25372b25cf9.tar.gz
coredns-2dd8a687b340e5ef7afa4bbe8802f25372b25cf9.tar.zst
coredns-2dd8a687b340e5ef7afa4bbe8802f25372b25cf9.zip
Startup notification (#250)
Stop the caddy message and start our own init notifications. Log the version of CoreDNS when starting up. Fix all middleware's setup functions so that return the error prefixed with *which* middleware was failing; leads to better debuggable errors when starting up.
Diffstat (limited to 'core/coredns.go')
-rw-r--r--core/coredns.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/coredns.go b/core/coredns.go
index 0ceb5d064..186c59612 100644
--- a/core/coredns.go
+++ b/core/coredns.go
@@ -22,3 +22,6 @@ import (
_ "github.com/miekg/coredns/middleware/rewrite"
_ "github.com/miekg/coredns/middleware/secondary"
)
+
+// Quiet mode will not show any informative output on initialization.
+var Quiet bool