MCPcopy Create free account
hub / github.com/GCWing/BitFun / resolve_logs_root

Function resolve_logs_root

src/apps/desktop/src/logging.rs:44–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44fn 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
60impl LogConfig {
61 pub fn new(is_debug: bool) -> Self {

Callers 3

get_runtime_logging_infoFunction · 0.70
create_session_log_dirFunction · 0.70
cleanup_old_log_sessionsFunction · 0.70

Calls 5

temp_dirFunction · 0.85
get_path_manager_arcFunction · 0.85
logs_dirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected