()
| 42 | } |
| 43 | |
| 44 | fn resolve_logs_root() -> PathBuf { |
| 45 | if let Some(path) = std::env::var_os("BITFUN_LOG_DIR").map(PathBuf::from) { |
| 46 | return path; |
| 47 | } |
| 48 | |
| 49 | if let Some(path) = std::env::var_os("BITFUN_E2E_LOG_DIR").map(PathBuf::from) { |
| 50 | return path; |
| 51 | } |
| 52 | |
| 53 | if is_embedded_webdriver_mode() { |
| 54 | return std::env::temp_dir().join("bitfun-e2e-logs"); |
| 55 | } |
| 56 | |
| 57 | get_path_manager_arc().logs_dir() |
| 58 | } |
| 59 | |
| 60 | impl LogConfig { |
| 61 | pub fn new(is_debug: bool) -> Self { |
no test coverage detected