fix: polling noice on log and cache for scanning java version

This commit is contained in:
objz committed 2026-07-10 17:06:59 +02:00
1 parent 7e5ff7f75f
commit b5d98e5e8a
3 files changed
+47 -12

No files matched your search

+2 -2
View File
@@ -238,7 +238,7 @@ pub fn detect_java_path() -> String {
let java_name = if cfg!(windows) { "java.exe" } else { "java" };
let bin = std::path::Path::new(&java_home).join("bin").join(java_name);
if bin.exists() {
tracing::debug!("Detected Java from JAVA_HOME: {}", bin.display());
tracing::trace!("Detected Java from JAVA_HOME: {}", bin.display());
return bin.to_string_lossy().to_string();
}
tracing::warn!(
@@ -249,7 +249,7 @@ pub fn detect_java_path() -> String {
}
match which::which("java") {
Ok(path) => {
tracing::debug!("Detected Java from PATH: {}", path.display());
tracing::trace!("Detected Java from PATH: {}", path.display());
path.to_string_lossy().to_string()
}
Err(e) => {