From: huanwen ren Date: Thu, 6 Jul 2017 02:04:02 +0000 (+0800) Subject: common: add query_str when res_search() failed X-Git-Tag: v12.1.1~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15878%2Fhead;p=ceph.git common: add query_str when res_search() failed I don't know the abort information about DNS Resolver, if not add "query_str". Signed-off-by: huanwen ren --- diff --git a/src/common/dns_resolve.cc b/src/common/dns_resolve.cc index 3b984a61c82c..13f06548e84d 100644 --- a/src/common/dns_resolve.cc +++ b/src/common/dns_resolve.cc @@ -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) {