Skip to content

Commit e19cd9b

Browse files
committed
Revert "Reapply "add debug info""
This reverts commit 9a7f7eb.
1 parent e5207a5 commit e19cd9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/uucore/src/lib/mods/locale.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,21 +332,19 @@ fn get_locales_dir(p: &str) -> Result<PathBuf, LocalizationError> {
332332
let exe_path = env::current_exe().map_err(|e| {
333333
LocalizationError::PathResolution(format!("Failed to get executable path: {}", e))
334334
})?;
335-
println!("Executable path: {}", exe_path.display());
335+
336336
let exe_dir = exe_path.parent().ok_or_else(|| {
337337
LocalizationError::PathResolution("Failed to get executable directory".to_string())
338338
})?;
339-
println!("Executable directory: {}", exe_dir.display());
339+
340340
// Try the coreutils-style path first
341341
let coreutils_path = exe_dir.join("locales").join(p);
342-
println!("Looking for locales in: {}", coreutils_path.display());
343342
if coreutils_path.exists() {
344343
return Ok(coreutils_path);
345344
}
346345

347346
// Fallback to just the parameter as a relative path
348347
let fallback_path = exe_dir.join(p);
349-
println!("Fallback locales path: {}", fallback_path.display());
350348
if fallback_path.exists() {
351349
return Ok(fallback_path);
352350
}

0 commit comments

Comments
 (0)