diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-28 11:38:37 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-28 11:38:37 +0200 |
commit | 5b2b4bf13c73dc88a1b1c43651fb3e2c707227fd (patch) | |
tree | 143be3e3f9c16254076ed8c8bc61760d5c5768d1 /src/LogInit.cxx | |
parent | 4bd67bc298fa5214eb2572d8a7c04ba0c24ac60b (diff) |
config/Param: use CamelCase
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r-- | src/LogInit.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx index cc617bdf9..5c8ae709b 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -124,18 +124,16 @@ log_init(bool verbose, bool use_stdout, Error &error) return true; #else - const struct config_param *param; - if (verbose) SetLogThreshold(LogLevel::DEBUG); - else if ((param = config_get_param(ConfigOption::LOG_LEVEL)) != nullptr) + else if (const auto ¶m = config_get_param(ConfigOption::LOG_LEVEL)) SetLogThreshold(parse_log_level(param->value.c_str(), param->line)); if (use_stdout) { return true; } else { - param = config_get_param(ConfigOption::LOG_FILE); + const auto *param = config_get_param(ConfigOption::LOG_FILE); if (param == nullptr) { #ifdef HAVE_SYSLOG /* no configuration: default to syslog (if |