v0.1.0-pre.061
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-logging/src/tracing_runtime.rs
|
||||
// version: 15
|
||||
// version: 16
|
||||
|
||||
//! Runtime initialization helpers for `tracing_subscriber`.
|
||||
|
||||
@@ -894,11 +894,11 @@ mod tests {
|
||||
let mut config = sample_logging_config();
|
||||
config.targets[0].targets = std::vec!["*".to_string()];
|
||||
config.target_filters = std::vec![crate::LogTargetFilterConfig {
|
||||
target: "kb_store_pg::*".to_string(),
|
||||
level: "trace".to_string()
|
||||
target: "kb_lib::executor::spl::token_2022::*".to_string(),
|
||||
level: "trace".to_string(),
|
||||
}];
|
||||
let expression = super::build_route_filter_expression(&config.targets[0], &config);
|
||||
assert_eq!(expression, "debug,kb_store_pg=trace");
|
||||
assert_eq!(expression, "debug,kb_lib::executor::spl::token_2022=trace");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -1093,8 +1093,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn split_file_name_keeps_stem_and_suffix() {
|
||||
let parts = super::split_file_name("khadhroony.bot2.log");
|
||||
assert_eq!(parts, ("khadhroony.bot2".to_string(), "log".to_string()));
|
||||
let parts = super::split_file_name("khadhroony.bot3.log");
|
||||
assert_eq!(parts, ("khadhroony.bot3".to_string(), "log".to_string()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user