]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5420] Added database logger rationale
authorFrancis Dupont <fdupont@isc.org>
Fri, 12 Jan 2018 09:12:21 +0000 (10:12 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 12 Jan 2018 09:12:21 +0000 (10:12 +0100)
premium
src/lib/dhcpsrv/db_log.h

diff --git a/premium b/premium
index 3894c2072c2327af8c38dccaf26b1adfbdb45e35..0444698bce5984e7c6efc00e95993c8f707aecb3 160000 (submodule)
--- a/premium
+++ b/premium
@@ -1 +1 @@
-Subproject commit 3894c2072c2327af8c38dccaf26b1adfbdb45e35
+Subproject commit 0444698bce5984e7c6efc00e95993c8f707aecb3
index 1eb59a5cafd5e065d5e81c2b481e7f6e837a1bda..4eb76d6a0a1ceb2c93d7db30351f10a944997841 100644 (file)
 #include <map>
 #include <list>
 
+/// @file db_log.h
+///
+/// We want to reuse the database backend connection and exchange code
+/// for other uses, in particular for hook libraries. But this code
+/// includes some calls to the system logger for debug and uncommon
+/// cases and of course we do not want to get log messages from
+/// a hook library to seem to come from DHCP server core.
+///
+/// The solution is to use a database logger which calls the right
+/// logger with mapped messages.
+
 namespace isc {
 namespace dhcp {