v0.1.0-pre.058
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-config/src/settings.rs
|
||||
// version: 15
|
||||
// version: 16
|
||||
|
||||
//! Typed configuration models shared by applications and workers.
|
||||
|
||||
@@ -1349,13 +1349,18 @@ mod tests {
|
||||
("info.log", "info", "human"),
|
||||
("error.jsonl", "error", "json"),
|
||||
] {
|
||||
let expected_path = format!("logs/{directory}/{crate_name}/{suffix}");
|
||||
let route_directory = if crate_name == "kb-pipeline-demo-scenarios" {
|
||||
"kb-pipeline"
|
||||
} else {
|
||||
crate_name.as_str()
|
||||
};
|
||||
let expected_path = format!("logs/{directory}/{route_directory}/{suffix}");
|
||||
let route_exists = profile.logging.targets.iter().any(|target| {
|
||||
return target.enabled
|
||||
&& target.path == expected_path
|
||||
&& target.level == level
|
||||
&& target.format == format
|
||||
&& target.targets == std::vec![crate_name.clone()];
|
||||
&& target.targets.iter().any(|value| return value == crate_name);
|
||||
});
|
||||
assert!(
|
||||
route_exists,
|
||||
|
||||
Reference in New Issue
Block a user