Skip to main content

dashboard_log_path

Function dashboard_log_path 

Source
pub fn dashboard_log_path() -> PathBuf
Expand description

Path to the persistent dashboard activity log (~/.leviath/dashboard.log).

Honours the LEVIATH_DASHBOARD_LOG_PATH override when set (tests use it via isolate_runs_dir_for_test); otherwise resolves the real home-relative path. This function only computes a PathBuf - it never writes - so both arms are safe to exercise directly in tests. The write side (append_dashboard_log and Dashboard::add_log) is what must stay off the user’s real log in tests: append_dashboard_log’s own tests set the override, and Dashboard carries an injected log path (a temp dir under make_test_dashboard) so no dashboard-input test ever appends to the real ~/.leviath/dashboard.log.