]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2637] Use logger to issue the warning about using memfile lease backend.
authorMarcin Siodelski <marcin@isc.org>
Thu, 17 Jan 2013 11:51:38 +0000 (12:51 +0100)
committerMarcin Siodelski <marcin@isc.org>
Thu, 17 Jan 2013 11:51:38 +0000 (12:51 +0100)
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/memfile_lease_mgr.cc

index 27f12fc947f64d901695b2ec3f14a53505dfa096..8f5a46708527d26cd91294899b8fc740715f6c45 100644 (file)
@@ -226,6 +226,12 @@ a database backend, but where no 'type' keyword has been included in
 the access string.  The access string (less any passwords) is included
 in the message.
 
+% DHCPSRV_USING_MEMFILE_BACKEND using memfile database backend, leases will be lost after restart
+This warning message is issued when the server is configured to use default
+'memfile' backend to store leases. The leases held by this backend are
+lost on server's restart. Currently 'memfile' backend is usable for testing
+purposes mainly.
+
 % DHCPSRV_UNKNOWN_DB unknown database type: %1
 The database access string specified a database type (given in the
 message) that is unknown to the software.  This is a configuration error.
index 34f21e93cee8319086f0b6246c8e46a059b97d17..050012b10f9b89ad4249048d16a4ba040ae7e535 100644 (file)
@@ -22,8 +22,7 @@ using namespace isc::dhcp;
 
 Memfile_LeaseMgr::Memfile_LeaseMgr(const ParameterMap& parameters)
     : LeaseMgr(parameters) {
-    std::cout << "Warning: Using memfile database backend. It is usable for limited"
-              << " testing only. Leases will be lost after restart." << std::endl;
+    LOG_WARN(dhcpsrv_logger, DHCPSRV_USING_MEMFILE_BACKEND);
 }
 
 Memfile_LeaseMgr::~Memfile_LeaseMgr() {