mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
refactor: Put log options in log section in config (#2440)
This commit is contained in:
@@ -57,7 +57,7 @@ protected:
|
||||
std::shared_ptr<MockHandlerProvider> handlerProvider_ = std::make_shared<MockHandlerProvider>();
|
||||
MockCounters counters_;
|
||||
|
||||
ClioConfigDefinition const config_{{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("none")}};
|
||||
ClioConfigDefinition const config_{{"log.tag_style", ConfigValue{ConfigType::String}.defaultValue("none")}};
|
||||
util::TagDecoratorFactory tagFactory_{config_};
|
||||
|
||||
rpc::impl::ForwardingProxy<MockCounters, MockHandlerProvider> proxy_{loadBalancer_, counters_, handlerProvider_};
|
||||
|
||||
@@ -80,7 +80,7 @@ generateDefaultRPCEngineConfig()
|
||||
{"workers", ConfigValue{ConfigType::Integer}.defaultValue(4).withConstraint(gValidateUint16)},
|
||||
{"rpc.cache_timeout",
|
||||
ConfigValue{ConfigType::Double}.defaultValue(0.0).withConstraint(gValidatePositiveDouble)},
|
||||
{"log_tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")},
|
||||
{"log.tag_style", ConfigValue{ConfigType::String}.defaultValue("uint")},
|
||||
{"dos_guard.whitelist.[]", Array{ConfigValue{ConfigType::String}.optional()}},
|
||||
{"dos_guard.max_fetches",
|
||||
ConfigValue{ConfigType::Integer}.defaultValue(1000'000u).withConstraint(gValidateUint32)},
|
||||
|
||||
@@ -1299,7 +1299,7 @@ struct RPCHelpersLogDurationTest : LoggerFixture, testing::WithParamInterface<RP
|
||||
}}
|
||||
};
|
||||
util::TagDecoratorFactory tagFactory{util::config::ClioConfigDefinition{
|
||||
{"log_tag_style", util::config::ConfigValue{util::config::ConfigType::String}.defaultValue("none")}
|
||||
{"log.tag_style", util::config::ConfigValue{util::config::ConfigType::String}.defaultValue("none")}
|
||||
}};
|
||||
struct DummyTaggable : util::Taggable {
|
||||
DummyTaggable(util::TagDecoratorFactory& f) : util::Taggable(f)
|
||||
|
||||
Reference in New Issue
Block a user