aboutsummaryrefslogtreecommitdiffstats
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 22:36:13 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 23:30:00 +0100
commit1c3f5517fabc264d7b37935bd37197cdd68250ba (patch)
tree509f68fe930e79bfa4c70a1cf2146a347f8acdef /src/LogInit.cxx
parent10972da06030d57429dc2c86c21e37fd0aca88dc (diff)
downloadmpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.gz
mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.xz
mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.zip
config/Option: convert to strictly-typed enum
Diffstat (limited to '')
-rw-r--r--src/LogInit.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx
index b154bcec4..f0f00495f 100644
--- a/src/LogInit.cxx
+++ b/src/LogInit.cxx
@@ -139,14 +139,14 @@ log_init(bool verbose, bool use_stdout, Error &error)
if (verbose)
SetLogThreshold(LogLevel::DEBUG);
- else if ((param = config_get_param(CONF_LOG_LEVEL)) != nullptr)
+ else if ((param = config_get_param(ConfigOption::LOG_LEVEL)) != nullptr)
SetLogThreshold(parse_log_level(param->value.c_str(),
param->line));
if (use_stdout) {
return true;
} else {
- param = config_get_param(CONF_LOG_FILE);
+ param = config_get_param(ConfigOption::LOG_FILE);
if (param == nullptr) {
#ifdef HAVE_SYSLOG
/* no configuration: default to syslog (if
@@ -164,7 +164,7 @@ log_init(bool verbose, bool use_stdout, Error &error)
return true;
#endif
} else {
- out_path = config_get_path(CONF_LOG_FILE, error);
+ out_path = config_get_path(ConfigOption::LOG_FILE, error);
return !out_path.IsNull() &&
log_init_file(param->line, error);
}