]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fixed log called too soon issue
authorFrancis Dupont <fdupont@isc.org>
Tue, 27 Mar 2018 14:39:50 +0000 (16:39 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 27 Mar 2018 14:39:50 +0000 (16:39 +0200)
src/lib/dhcpsrv/host_data_source_factory.cc

index 3d467bc927e533879c6a74120653016eca5bdb49..9e023c76782ecc526b11045744cf7c6798e11fb1 100644 (file)
@@ -96,8 +96,12 @@ HostDataSourceFactory::registerFactory(const string& db_type,
         return (false);
     }
     map_.insert(pair<string, Factory>(db_type, factory));
+    // As registerFactory can be called before logging is established
+    // remove temporary this until a better solution is found.
+#if 0
     LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE, HOSTS_BACKEND_REGISTER)
         .arg(db_type);
+#endif
     return (true);
 }