]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: add query_str when res_search() failed 15878/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Thu, 6 Jul 2017 02:04:02 +0000 (10:04 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Thu, 6 Jul 2017 05:39:34 +0000 (13:39 +0800)
I don't know the abort information about DNS Resolver,
if not add "query_str".

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/common/dns_resolve.cc

index 3b984a61c82cd5428cd28d939da487298a2e1648..13f06548e84d040a9ab17da1beb06dfb24430d6d 100644 (file)
@@ -299,7 +299,7 @@ int DNSResolver::resolve_srv_hosts(CephContext *cct, const string& service_name,
   }
 #endif
   if (len < 0) {
-    lderr(cct) << "res_search() failed" << dendl;
+    lderr(cct) << "failed for service " << query_str << dendl;
     return len;
   }
   else if (len == 0) {