Skip to content

Commit 58c958f

Browse files
committed
fix rustdoc
1 parent 6bc5540 commit 58c958f

File tree

1 file changed

+38
-25
lines changed

1 file changed

+38
-25
lines changed

crates/stackable-operator/src/product_logging/framework.rs

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,20 +1418,21 @@ sinks:
14181418
/// );
14191419
///
14201420
/// if logging.enable_vector_agent {
1421-
/// if let Some(vector_aggregator_config_map_name) = spec
1422-
/// .cluster_config
1423-
/// .vector_aggregator_config_map_name
1424-
/// .to_owned()
1421+
/// if let Some(vector_aggregator_config_map_name) = spec
1422+
/// .cluster_config
1423+
/// .vector_aggregator_config_map_name
1424+
/// .to_owned()
14251425
/// {
1426-
/// pod_builder.add_container(product_logging::framework::vector_container(
1427-
/// &resolved_product_image,
1428-
/// "config",
1429-
/// "log",
1430-
/// logging.containers.get(&Container::Vector),
1431-
/// resources,
1432-
/// vector_aggregator_config_map_name,
1433-
/// ).unwrap());
1434-
/// }
1426+
/// pod_builder.add_container(product_logging::framework::vector_container(
1427+
/// &resolved_product_image,
1428+
/// "config",
1429+
/// "log",
1430+
/// logging.containers.get(&Container::Vector),
1431+
/// resources,
1432+
/// vector_aggregator_config_map_name,
1433+
/// ).unwrap());
1434+
/// }
1435+
/// }
14351436
///
14361437
/// pod_builder.build().unwrap();
14371438
/// ```
@@ -1566,9 +1567,12 @@ mod tests {
15661567
#[test]
15671568
fn log4j2_config() {
15681569
let log_config = AutomaticContainerLogConfig {
1569-
loggers: vec![("ROOT".to_string(), LoggerConfig {
1570-
level: LogLevel::INFO,
1571-
})]
1570+
loggers: vec![(
1571+
"ROOT".to_string(),
1572+
LoggerConfig {
1573+
level: LogLevel::INFO,
1574+
},
1575+
)]
15721576
.into_iter()
15731577
.collect::<BTreeMap<String, LoggerConfig>>(),
15741578
console: Some(AppenderConfig {
@@ -1598,15 +1602,24 @@ mod tests {
15981602
fn log4j2_config_with_additional_loggers() {
15991603
let log_config = AutomaticContainerLogConfig {
16001604
loggers: vec![
1601-
("ROOT".to_string(), LoggerConfig {
1602-
level: LogLevel::INFO,
1603-
}),
1604-
("test".to_string(), LoggerConfig {
1605-
level: LogLevel::INFO,
1606-
}),
1607-
("test_2".to_string(), LoggerConfig {
1608-
level: LogLevel::DEBUG,
1609-
}),
1605+
(
1606+
"ROOT".to_string(),
1607+
LoggerConfig {
1608+
level: LogLevel::INFO,
1609+
},
1610+
),
1611+
(
1612+
"test".to_string(),
1613+
LoggerConfig {
1614+
level: LogLevel::INFO,
1615+
},
1616+
),
1617+
(
1618+
"test_2".to_string(),
1619+
LoggerConfig {
1620+
level: LogLevel::DEBUG,
1621+
},
1622+
),
16101623
]
16111624
.into_iter()
16121625
.collect::<BTreeMap<String, LoggerConfig>>(),

0 commit comments

Comments
 (0)