aboutsummaryrefslogtreecommitdiff
path: root/plugin/debug/pcap.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/debug/pcap.go')
-rw-r--r--plugin/debug/pcap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/debug/pcap.go b/plugin/debug/pcap.go
index 053c2d9dd..0663f6dce 100644
--- a/plugin/debug/pcap.go
+++ b/plugin/debug/pcap.go
@@ -23,7 +23,7 @@ import (
//
// msg will prefix the pcap dump.
func Hexdump(m *dns.Msg, v ...interface{}) {
- if !log.D {
+ if !log.D.Value() {
return
}
@@ -39,7 +39,7 @@ func Hexdump(m *dns.Msg, v ...interface{}) {
// Hexdumpf dumps a DNS message as Hexdump, but allows a format string.
func Hexdumpf(m *dns.Msg, format string, v ...interface{}) {
- if !log.D {
+ if !log.D.Value() {
return
}