diff options
| author | Shulhan <ms@kilabit.info> | 2018-09-27 10:40:54 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-09-27 12:41:11 +0700 |
| commit | 72b646c76eedce293bc827331aaef63e15babc98 (patch) | |
| tree | 5b5b40c93ef0436a8ce62145c987ddda1a49daa6 | |
| parent | 599ff9596eff45c9319806112a341c86a5952aae (diff) | |
| download | pakakeh.go-72b646c76eedce293bc827331aaef63e15babc98.tar.xz | |
lib/dns: increase debug value by one
| -rw-r--r-- | lib/dns/masterfile.go | 2 | ||||
| -rw-r--r-- | lib/dns/message.go | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/dns/masterfile.go b/lib/dns/masterfile.go index aa4b0df6..f78256f3 100644 --- a/lib/dns/masterfile.go +++ b/lib/dns/masterfile.go @@ -1054,7 +1054,7 @@ func (m *master) pack() { msg.Header.ANCount = 0 } - if debug.Value >= 1 { + if debug.Value >= 2 { fmt.Printf("= Header: %+v\n", msg.Header) fmt.Printf(" Question: %s\n", msg.Question) for x := 0; x < len(msg.Answer); x++ { diff --git a/lib/dns/message.go b/lib/dns/message.go index ac9ca32e..cfb0c4e4 100644 --- a/lib/dns/message.go +++ b/lib/dns/message.go @@ -661,7 +661,7 @@ func (msg *Message) Unpack() (err error) { msg.Answer = append(msg.Answer, rr) } - if debug.Value >= 1 { + if debug.Value >= 2 { log.Printf("msg.Answer: %+v\n", msg.Answer) } @@ -675,7 +675,7 @@ func (msg *Message) Unpack() (err error) { msg.Authority = append(msg.Authority, rr) } - if debug.Value >= 1 { + if debug.Value >= 2 { log.Printf("msg.Authority: %+v\n", msg.Authority) } @@ -689,7 +689,7 @@ func (msg *Message) Unpack() (err error) { msg.Additional = append(msg.Additional, rr) } - if debug.Value >= 1 { + if debug.Value >= 2 { log.Printf("msg.Additional: %+v\n", msg.Additional) } @@ -704,7 +704,7 @@ func (msg *Message) Unpack() (err error) { func (msg *Message) UnpackHeaderQuestion() { _ = msg.Header.unpack(msg.Packet) - if debug.Value >= 1 { + if debug.Value >= 2 { log.Printf("msg.Header: %+v\n", msg.Header) } @@ -714,7 +714,7 @@ func (msg *Message) UnpackHeaderQuestion() { _ = msg.Question.unpack(msg.Packet[sectionHeaderSize:]) - if debug.Value >= 1 { + if debug.Value >= 2 { log.Printf("msg.Question: %s\n", msg.Question) } } |
