This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/main by this push:
new f6af100531 rework noisy dns log (#835)
f6af100531 is described below
commit f6af100531e037b4f245f564d7be8c70f0093a4f
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Dec 8 10:24:35 2023 +0100
rework noisy dns log (#835)
---
.../scala/org/apache/pekko/io/dns/internal/DnsClient.scala | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
a/actor/src/main/scala/org/apache/pekko/io/dns/internal/DnsClient.scala
b/actor/src/main/scala/org/apache/pekko/io/dns/internal/DnsClient.scala
index 50fff00186..07566dff92 100644
--- a/actor/src/main/scala/org/apache/pekko/io/dns/internal/DnsClient.scala
+++ b/actor/src/main/scala/org/apache/pekko/io/dns/internal/DnsClient.scala
@@ -168,11 +168,13 @@ import pekko.pattern.{ BackoffOpts, BackoffSupervisor }
msg.id,
msg.questions.mkString(","),
orig.questions.mkString(","))
- case Some((_, orig)) =>
- log.warning("DNS response id {} question [{}] question asked [{}]",
- msg.id,
- msg.questions.mkString(","),
- orig.questions.mkString(","))
+ case Some((_, _)) =>
+ if (log.isDebugEnabled) {
+ log.debug("DNS response id {} has response code {}: question
[{}]",
+ msg.id,
+ msg.flags.responseCode,
+ msg.questions.mkString(","))
+ }
val (recs, additionalRecs) =
if (msg.flags.responseCode == ResponseCode.SUCCESS)
(msg.answerRecs, msg.additionalRecs) else (Nil, Nil)
self ! Answer(msg.id, recs, additionalRecs)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]