mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
refactor: Put log options in log section in config (#2440)
This commit is contained in:
@@ -125,7 +125,7 @@ getParseServerConfig(boost::json::value val)
|
||||
{"server.admin_password", ConfigValue{ConfigType::String}.optional()},
|
||||
{"server.local_admin", ConfigValue{ConfigType::Boolean}.optional()},
|
||||
{"server.ws_max_sending_queue_size", ConfigValue{ConfigType::Integer}.defaultValue(1500)},
|
||||
{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")},
|
||||
{"log.tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")},
|
||||
{"dos_guard.max_fetches", ConfigValue{ConfigType::Integer}},
|
||||
{"dos_guard.sweep_interval", ConfigValue{ConfigType::Integer}},
|
||||
{"dos_guard.max_connections", ConfigValue{ConfigType::Integer}},
|
||||
@@ -525,7 +525,7 @@ getParseAdminServerConfig(boost::json::value val)
|
||||
{"ssl_key_file", ConfigValue{ConfigType::String}.optional()},
|
||||
{"prometheus.enabled", ConfigValue{ConfigType::Boolean}.defaultValue(true)},
|
||||
{"prometheus.compress_reply", ConfigValue{ConfigType::Boolean}.defaultValue(true)},
|
||||
{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")}
|
||||
{"log.tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")}
|
||||
};
|
||||
auto const errors = config.parse(jsonVal);
|
||||
[&]() { ASSERT_FALSE(errors.has_value()); }();
|
||||
|
||||
Reference in New Issue
Block a user