From b3a208d4acb56df3f34b4177a5717bbb1a5b40ed Mon Sep 17 00:00:00 2001 From: "Hatter Jiang@Pixelbook" Date: Fri, 9 Aug 2019 01:27:40 +0800 Subject: [PATCH] add jdk path match verbose outputs --- src/jdk.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jdk.rs b/src/jdk.rs index e726862..0c25c32 100644 --- a/src/jdk.rs +++ b/src/jdk.rs @@ -109,6 +109,9 @@ pub fn get_local_java_home(version: &str) -> Option { matched_path = p; } if matched_path != "" { + if *VERBOSE { + print_message(MessageType::DEBUG, &format!("Matched JDK path found: {}", matched_path)); + } if local_util::is_path_exists(matched_path, "Contents/Home") { return Some(format!("{}/{}", matched_path, "Contents/Home")); } else {