From: Thomas Markwalder Date: Thu, 5 Jun 2014 18:48:40 +0000 (-0400) Subject: [3401] Fixed Daemon::loggerInit implementation X-Git-Tag: trac3434_base~9^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8daa523742b37c910c9ab24a79ffdf49b2e14935;p=thirdparty%2Fkea.git [3401] Fixed Daemon::loggerInit implementation Replaced Daemon::loggerInit with implemetation used by Dhcp6 so logging output now goes to stdout. --- diff --git a/src/bin/d2/d_controller.cc b/src/bin/d2/d_controller.cc index e01e3d36ce..3152f30691 100644 --- a/src/bin/d2/d_controller.cc +++ b/src/bin/d2/d_controller.cc @@ -338,9 +338,12 @@ DControllerBase::getConfigFileName() { // Provide an implementation until we figure out a better way to do this. void dhcp::Daemon::loggerInit(const char* log_name, bool verbose) { - isc::log::initLogger(log_name, - (verbose ? isc::log::DEBUG : isc::log::INFO), - isc::log::MAX_DEBUG_LEVEL, NULL, true); + setenv("B10_LOCKFILE_DIR_FROM_BUILD", "/tmp", 1); + setenv("B10_LOGGER_ROOT", log_name, 0); + setenv("B10_LOGGER_SEVERITY", (verbose ? "DEBUG":"INFO"), 0); + setenv("B10_LOGGER_DBGLEVEL", "99", 0); + setenv("B10_LOGGER_DESTINATION", "stdout", 0); + isc::log::initLogger(); } }; // namespace isc