(config: &LogsSettings, module_id: &str)
| 601 | // } |
| 602 | |
| 603 | fn get_log_volume(config: &LogsSettings, module_id: &str) -> Option<Volumes> { |
| 604 | config.file.enabled.then_some({ |
| 605 | let p = config.file.dir_path.join(module_id.to_lowercase()); |
| 606 | Volumes::Simple(format!( |
| 607 | "{}:{}", |
| 608 | p.to_str().expect("could not convert pathbuf to str"), |
| 609 | LOGS_DIR_DEFAULT |
| 610 | )) |
| 611 | }) |
| 612 | } |
| 613 | |
| 614 | /// Formats as a comma separated list of key=value |
| 615 | fn format_comma_separated(map: &IndexMap<ModuleId, String>) -> String { |
no outgoing calls
no test coverage detected