From: Francis Dupont Date: Tue, 27 Mar 2018 14:39:50 +0000 (+0200) Subject: [master] Fixed log called too soon issue X-Git-Tag: trac5458a_base~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed5619ca336dadde9d1d5d3b7b34e0a67795647;p=thirdparty%2Fkea.git [master] Fixed log called too soon issue --- diff --git a/src/lib/dhcpsrv/host_data_source_factory.cc b/src/lib/dhcpsrv/host_data_source_factory.cc index 3d467bc927..9e023c7678 100644 --- a/src/lib/dhcpsrv/host_data_source_factory.cc +++ b/src/lib/dhcpsrv/host_data_source_factory.cc @@ -96,8 +96,12 @@ HostDataSourceFactory::registerFactory(const string& db_type, return (false); } map_.insert(pair(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); }