Browse Source

[1063] Name of DB in log messages

Michal 'vorner' Vaner 13 years ago
parent
commit
0fe4f0151a
2 changed files with 6 additions and 6 deletions
  1. 3 3
      src/lib/datasrc/database.cc
  2. 3 3
      src/lib/datasrc/datasrc_messages.mes

+ 3 - 3
src/lib/datasrc/database.cc

@@ -316,12 +316,12 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
                 if (result_rrset->getType() == isc::dns::RRType::NS()) {
                 if (result_rrset->getType() == isc::dns::RRType::NS()) {
                     LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                     LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                               DATASRC_DATABASE_FOUND_DELEGATION).
                               DATASRC_DATABASE_FOUND_DELEGATION).
-                        arg(superdomain);
+                        arg(database_->getDBName()).arg(superdomain);
                     result_status = DELEGATION;
                     result_status = DELEGATION;
                 } else {
                 } else {
                     LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                     LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                               DATASRC_DATABASE_FOUND_DNAME).
                               DATASRC_DATABASE_FOUND_DNAME).
-                        arg(superdomain);
+                        arg(database_->getDBName()).arg(superdomain);
                     result_status = DNAME;
                     result_status = DNAME;
                 }
                 }
                 // Don't search more
                 // Don't search more
@@ -341,7 +341,7 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
                 result_rrset->getType() == isc::dns::RRType::NS()) {
                 result_rrset->getType() == isc::dns::RRType::NS()) {
                 LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                 LOG_DEBUG(logger, DBG_TRACE_DETAILED,
                           DATASRC_DATABASE_FOUND_DELEGATION_EXACT).
                           DATASRC_DATABASE_FOUND_DELEGATION_EXACT).
-                    arg(name);
+                    arg(database_->getDBName()).arg(name);
                 result_status = DELEGATION;
                 result_status = DELEGATION;
             } else if (result_rrset && type != isc::dns::RRType::CNAME() &&
             } else if (result_rrset && type != isc::dns::RRType::CNAME() &&
                        result_rrset->getType() == isc::dns::RRType::CNAME()) {
                        result_rrset->getType() == isc::dns::RRType::CNAME()) {

+ 3 - 3
src/lib/datasrc/datasrc_messages.mes

@@ -90,16 +90,16 @@ most likely points to a logic error in the code, and can be considered a bug.
 The current search is aborted. Specific information about the exception is
 The current search is aborted. Specific information about the exception is
 printed in this error message.
 printed in this error message.
 
 
-% DATASRC_DATABASE_FOUND_DELEGATION Found delegation at %1
+% DATASRC_DATABASE_FOUND_DELEGATION Found delegation at %2 in %1
 When searching for a domain, the program met a delegation to a different zone
 When searching for a domain, the program met a delegation to a different zone
 at the given domain name. It will return that one instead.
 at the given domain name. It will return that one instead.
 
 
-% DATASRC_DATABASE_FOUND_DELEGATION_EXACT Found delegation at %1 (exact match)
+% DATASRC_DATABASE_FOUND_DELEGATION_EXACT Found delegation at %2 (exact match) in %1
 The program found the domain requested, but it is a delegation point to a
 The program found the domain requested, but it is a delegation point to a
 different zone, therefore it is not authoritative for this domain name.
 different zone, therefore it is not authoritative for this domain name.
 It will return the NS record instead.
 It will return the NS record instead.
 
 
-% DATASRC_DATABASE_FOUND_DNAME Found DNAME at %1
+% DATASRC_DATABASE_FOUND_DNAME Found DNAME at %2 in %1
 When searching for a domain, the program met a DNAME redirection to a different
 When searching for a domain, the program met a DNAME redirection to a different
 place in the domain space at the given domain name. It will return that one
 place in the domain space at the given domain name. It will return that one
 instead.
 instead.