mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Don't register quiet flag in register.go (#299)
This clashes to Caddy, which also has its own quiet flag. Move stuff around a bit, also to prevent cyclic imports.
This commit is contained in:
@@ -218,7 +218,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
|
||||
}
|
||||
|
||||
// OnStartupComplete lists the sites served by this server
|
||||
// and any relevant information, assuming Quiet == false.
|
||||
// and any relevant information, assuming Quiet is false.
|
||||
func (s *Server) OnStartupComplete() {
|
||||
if Quiet {
|
||||
return
|
||||
@@ -259,3 +259,8 @@ const (
|
||||
tcp = 0
|
||||
udp = 1
|
||||
)
|
||||
|
||||
var (
|
||||
// Quiet mode will not show any informative output on initialization.
|
||||
Quiet bool
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user