Commit 3e4faff0 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[#25,!14] DHCP4,6 now use Deamon to set up default logger name

parent 6a5b5caa
......@@ -134,7 +134,7 @@ main(int argc, char* argv[]) {
// We need to initialize logging, in case any error messages are to be printed.
// This is just a test, so we don't care about lockfile.
setenv("KEA_LOCKFILE_DIR", "none", 0);
CfgMgr::instance().setDefaultLoggerName(DHCP4_ROOT_LOGGER_NAME);
Daemon::setDefaultLoggerName(DHCP4_ROOT_LOGGER_NAME);
Daemon::loggerInit(DHCP4_ROOT_LOGGER_NAME, verbose_mode);
// Check the syntax first.
......@@ -181,7 +181,7 @@ main(int argc, char* argv[]) {
// It is important that we set a default logger name because this name
// will be used when the user doesn't provide the logging configuration
// in the Kea configuration file.
CfgMgr::instance().setDefaultLoggerName(DHCP4_ROOT_LOGGER_NAME);
Daemon::setDefaultLoggerName(DHCP4_ROOT_LOGGER_NAME);
// Initialize logging. If verbose, we'll use maximum verbosity.
Daemon::loggerInit(DHCP4_ROOT_LOGGER_NAME, verbose_mode);
......
......@@ -137,8 +137,8 @@ main(int argc, char* argv[]) {
// We need to initialize logging, in case any error messages are to be printed.
// This is just a test, so we don't care about lockfile.
setenv("KEA_LOCKFILE_DIR", "none", 0);
CfgMgr::instance().setDefaultLoggerName(DHCP6_ROOT_LOGGER_NAME);
isc::process::Daemon::loggerInit(DHCP6_ROOT_LOGGER_NAME, verbose_mode);
Daemon::setDefaultLoggerName(DHCP6_ROOT_LOGGER_NAME);
Daemon::loggerInit(DHCP6_ROOT_LOGGER_NAME, verbose_mode);
// Check the syntax first.
Parser6Context parser;
......@@ -187,7 +187,7 @@ main(int argc, char* argv[]) {
// It is important that we set a default logger name because this name
// will be used when the user doesn't provide the logging configuration
// in the Kea configuration file.
CfgMgr::instance().setDefaultLoggerName(DHCP6_LOGGER_NAME);
Daemon::setDefaultLoggerName(DHCP6_LOGGER_NAME);
// Initialize logging. If verbose, we'll use maximum verbosity.
Daemon::loggerInit(DHCP6_LOGGER_NAME, verbose_mode);
......
......@@ -14,4 +14,4 @@ SUBDIRS += cql
endif
SUBDIRS += testutils hooks dhcp config stats asiodns dhcp_ddns eval \
cfgrpt process dhcpsrv process http
cfgrpt process dhcpsrv http
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment