log: display error if LOG_LEVEL is invalid

This commit is contained in:
Danny Robson 2016-06-24 16:56:13 +10:00
parent 9b4ce6555e
commit d8918d6f2c

View File

@ -118,6 +118,7 @@ log_level (void)
try {
return to_level (env);
} catch (...) {
LOG_ERROR("Invalid environment LOG_LEVEL: '%s'", env);
return util::DEFAULT_LOG_LEVEL;
}
}