This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch 1.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/1.0.x by this push:
new 5b4a8234e4 rework noisy dns log (#835) (#836)
5b4a8234e4 is described below
commit 5b4a8234e4ee5af62470da32d5ed11c843fc9151
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Dec 13 11:50:30 2023 +0100
rework noisy dns log (#835) (#836)
---
.../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]