aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/server.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-26 17:29:04 +0700
committerShulhan <ms@kilabit.info>2026-02-02 16:28:11 +0700
commit85b44587e111fb92722f436ebf9dddbb68556895 (patch)
tree00571227402be8f6e55941bcde01ca46d048a1e4 /lib/dns/server.go
parent69ccba6797c5e74957759427654f8e11a2e9d09b (diff)
downloadpakakeh.go-85b44587e111fb92722f436ebf9dddbb68556895.tar.xz
lib/dns: remove DebugLevelDNS
The DebugLevelDNS log the error on DNS level, for example empty answer, error on name, class not implemented, refused; which is now on by default.
Diffstat (limited to 'lib/dns/server.go')
-rw-r--r--lib/dns/server.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dns/server.go b/lib/dns/server.go
index f834a38b..e4dcbac5 100644
--- a/lib/dns/server.go
+++ b/lib/dns/server.go
@@ -557,9 +557,7 @@ func (srv *Server) serveTCPClient(logp string, cl *TCPClient, kind string) {
func (srv *Server) isImplemented(msg *Message) bool {
switch msg.Question.Class {
case RecordClassCH, RecordClassHS:
- if srv.opts.Debug&DebugLevelDNS != 0 {
- log.Printf(`dns: class %d is not implemented`, msg.Question.Class)
- }
+ log.Printf(`dns: class %d is not implemented`, msg.Question.Class)
return false
}