Commit b37e972c authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2421] Include zone name in log messages

parent 74985768
......@@ -180,7 +180,7 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
paramConf->get(*it)->stringValue());
} catch (const ZoneLoaderException& e) {
LOG_ERROR(logger, DATASRC_LOAD_FROM_FILE_ERROR)
.arg(e.what());
.arg(origin).arg(e.what());
}
} else {
ZoneIteratorPtr iterator;
......@@ -199,7 +199,7 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
cache->load(origin, *iterator);
} catch (const ZoneLoaderException& e) {
LOG_ERROR(logger, DATASRC_LOAD_FROM_ITERATOR_ERROR)
.arg(e.what());
.arg(origin).arg(e.what());
}
}
}
......
......@@ -305,12 +305,12 @@ Therefore, the zone will not be available for this process. If this is
a problem, you should move the zone to some database backend (sqlite3, for
example) and use it from there.
% DATASRC_LOAD_FROM_FILE_ERROR %1
% DATASRC_LOAD_FROM_FILE_ERROR Error loading zone %1: %2
An error was found in the zone data when it was being loaded from a
file. The zone was not loaded. The specific error is shown in the
message, and should be addressed.
% DATASRC_LOAD_FROM_ITERATOR_ERROR %1
% DATASRC_LOAD_FROM_ITERATOR_ERROR Error loading zone %1: %2
An error was found in the zone data when it was being loaded from
another data source. The zone was not loaded. The specific error is
shown in the message, and should be addressed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment