]> granicus.if.org Git - pdns/commitdiff
Use toLogString when creating a logstring with a DNSName in the recursor
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 28 Jun 2016 09:38:20 +0000 (11:38 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 1 Jul 2016 12:34:57 +0000 (14:34 +0200)
pdns/pdns_recursor.cc

index 7a5e104a6050cb855ec27527b0d122e4e3aa4bdd..9042550b8eeee6a45e33bf7fc15e8aabba48d2ba 100644 (file)
@@ -607,7 +607,7 @@ void updateResponseStats(int res, const ComboAddress& remote, unsigned int packe
 static string makeLoginfo(DNSComboWriter* dc)
 try
 {
-  return "("+dc->d_mdp.d_qname.toString()+"/"+DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")";
+  return "("+dc->d_mdp.d_qname.toLogString()+"/"+DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")";
 }
 catch(...)
 {