Skip to content

Commit c43b9a7

Browse files
committed
refactor: remove debug print statements from web server directory resolution logic
1 parent fad6795 commit c43b9a7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src-tauri/src/web_server/router.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ fn resolve_dist_dir() -> PathBuf {
7070
}
7171

7272
if let Ok(exe_path) = std::env::current_exe() {
73-
println!("[web] current_exe: {}", exe_path.display());
7473
if let Some(exe_dir) = exe_path.parent() {
7574
add_candidate(exe_dir.join("dist"));
7675
add_candidate(exe_dir.join("../dist"));
@@ -80,26 +79,15 @@ fn resolve_dist_dir() -> PathBuf {
8079
add_candidate(exe_dir.join("../Resources/dist"));
8180
add_candidate(exe_dir.join("../../Resources/dist"));
8281
}
83-
} else {
84-
println!("[web] current_exe: <unavailable>");
8582
}
8683

8784
add_candidate(PathBuf::from("dist"));
8885

89-
for path in &candidates {
90-
println!(
91-
"[web] dist candidate: {} (index.html exists: {})",
92-
path.display(),
93-
path.join("index.html").exists()
94-
);
95-
}
96-
9786
let selected = candidates
9887
.into_iter()
9988
.find(|path| path.join("index.html").exists())
10089
.unwrap_or_else(|| PathBuf::from("dist"));
10190

102-
println!("[web] resolved dist dir: {}", selected.display());
10391
selected
10492
}
10593

0 commit comments

Comments
 (0)