diff --git a/src/core/io-state.js b/src/core/io-state.js index 06ad5d19f3..686a7898b8 100644 --- a/src/core/io-state.js +++ b/src/core/io-state.js @@ -145,12 +145,13 @@ export default class IOState { } logDnsPkt() { + if (this.isProd) return; this.log.d( "domains", dnsutil.extractDomains(this.decodedDnsPacket), + dnsutil.getQueryType(this.decodedDnsPacket) || "", "data", dnsutil.getInterestingAnswerData(this.decodedDnsPacket), - "ttl", dnsutil.ttl(this.decodedDnsPacket) ); } diff --git a/src/plugins/dns-op/resolver.js b/src/plugins/dns-op/resolver.js index 20dfe3cc98..a4b3ac0f7d 100644 --- a/src/plugins/dns-op/resolver.js +++ b/src/plugins/dns-op/resolver.js @@ -265,7 +265,7 @@ export default class DNSResolver { // check outgoing cached dns-packet against blocklists this.blocker.blockAnswer(rxid, /* out*/ r, blInfo); const fromCache = cacheutil.hasCacheHeader(res.headers); - this.log.d(rxid, "ans block?", r.isBlocked, "from cache?", fromCache); + this.log.d(rxid, "ansblock?", r.isBlocked, "fromcache?", fromCache); // if res was got from caches or if res was got from max doh (ie, blf // wasn't used to retrieve stamps), then skip hydrating the cache @@ -311,7 +311,7 @@ export default class DNSResolver { this.log.d(rxid, "primeCache: block?", blocked, "k", k.href); if (!k) { - this.log.d(rxid, "no cache-key, url/query missing?", k, r.stamps); + this.log.d(rxid, "primeCache: no key, url/query missing?", k, r.stamps); return; }