mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
Fix clickhouse-local exit on bad send_logs_level setting
This commit is contained in:
parent
0703c88381
commit
2516c2ea28
@ -1810,7 +1810,12 @@ void ClientBase::processParsedSingleQuery(const String & full_query, const Strin
|
|||||||
{
|
{
|
||||||
const auto * logs_level_field = set_query->changes.tryGet(std::string_view{"send_logs_level"});
|
const auto * logs_level_field = set_query->changes.tryGet(std::string_view{"send_logs_level"});
|
||||||
if (logs_level_field)
|
if (logs_level_field)
|
||||||
updateLoggerLevel(logs_level_field->safeGet<String>());
|
{
|
||||||
|
auto logs_level = logs_level_field->safeGet<String>();
|
||||||
|
/// Check that setting value is correct before updating logger level.
|
||||||
|
SettingFieldLogsLevelTraits::fromString(logs_level);
|
||||||
|
updateLoggerLevel(logs_level);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (const auto * create_user_query = parsed_query->as<ASTCreateUserQuery>())
|
if (const auto * create_user_query = parsed_query->as<ASTCreateUserQuery>())
|
||||||
|
Loading…
Reference in New Issue
Block a user