]> granicus.if.org Git - pdns/commitdiff
Use qcode name instead of number
authorAki Tuomi <cmouse@desteem.org>
Wed, 10 Dec 2014 18:33:43 +0000 (20:33 +0200)
committerAki Tuomi <cmouse@desteem.org>
Wed, 10 Dec 2014 18:33:43 +0000 (20:33 +0200)
pdns/pdns_recursor.cc

index c37e92011a06f55f2967559c0ec01f3e58d039f4..2dfc4e9f96f00db77dcab1b9b7ed0f1f176e37aa 100644 (file)
@@ -502,7 +502,7 @@ void startDoResolve(void *p)
 
   try {
     loginfo=" (while setting loginfo)";
-    loginfo=" ("+dc->d_mdp.d_qname+"/"+lexical_cast<string>(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")";
+    loginfo=" ("+dc->d_mdp.d_qname+"/"+DNSRecordContent::NumberToType(dc->d_mdp.d_qtype)+" from "+(dc->d_remote.toString())+")";
     uint32_t maxanswersize= dc->d_tcp ? 65535 : min((uint16_t) 512, g_udpTruncationThreshold);
     EDNSOpts edo;
     if(getEDNSOpts(dc->d_mdp, &edo) && !dc->d_tcp) {