summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-21 13:45:40 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-21 13:45:40 +0100
commit517c30e30bacc15c92582405c2c3a3f045083179 (patch)
treea9083a1b13c26f6330d0d7cdf50cd2920586989e /src
parent93d4ad71961084caf7ac46c22028c79a2fcf461e (diff)
Improve the core_hostname_lookup result log message.
- Add the type of request. - Add whether the request was cached.
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_hostname_lookup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp
index 31f5edd8c..125fe07f0 100644
--- a/src/coremods/core_hostname_lookup.cpp
+++ b/src/coremods/core_hostname_lookup.cpp
@@ -67,7 +67,10 @@ class UserResolver : public DNS::Request
return;
}
- ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "DNS result for %s: '%s' -> '%s'", uuid.c_str(), ans_record->name.c_str(), ans_record->rdata.c_str());
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "DNS %s result for %s: '%s' -> '%s'%s",
+ this->manager->GetTypeStr(question.type).c_str(), uuid.c_str(),
+ ans_record->name.c_str(), ans_record->rdata.c_str(),
+ r->cached ? " (cached)" : "");
if (this->question.type == DNS::QUERY_PTR)
{