diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-10 12:26:48 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-10 12:26:48 +0200 |
commit | 7045a0d4ce7b4f2752c5496851a6319ea04137b6 (patch) | |
tree | 6f56fb05e9eb2574f9879ececa84b52de1d2d21f /src | |
parent | 6a068554a95b96d5ff944667c9d27d2427d526a9 (diff) |
core_hostname_lookup Change source of log messages to MODNAME
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_hostname_lookup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp index 7f3f23149..2c9de3c86 100644 --- a/src/coremods/core_hostname_lookup.cpp +++ b/src/coremods/core_hostname_lookup.cpp @@ -61,13 +61,13 @@ class UserResolver : public DNS::Request LocalUser* bound_user = (LocalUser*)ServerInstance->FindUUID(uuid); if (!bound_user) { - ServerInstance->Logs->Log("RESOLVER", LOG_DEBUG, "Resolution finished for user '%s' who is gone", uuid.c_str()); + ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Resolution finished for user '%s' who is gone", uuid.c_str()); return; } const DNS::ResourceRecord& ans_record = r->answers[0]; - ServerInstance->Logs->Log("RESOLVER", 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 result for %s: '%s' -> '%s'", uuid.c_str(), ans_record.name.c_str(), ans_record.rdata.c_str()); if (!fwd) { @@ -129,7 +129,7 @@ class UserResolver : public DNS::Request if (hostname == NULL) { - ServerInstance->Logs->Log("RESOLVER", LOG_DEFAULT, "ERROR: User has no hostname attached when doing a forward lookup"); + ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: User has no hostname attached when doing a forward lookup"); bound_user->WriteNotice("*** There was an internal error resolving your host, using your IP address (" + bound_user->GetIPString() + ") instead."); return; } |