Skip to content

Commit

Permalink
support default CONNECTOR_LIBS_PATH value ./libs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Oct 30, 2023
1 parent 9bfcf6a commit b0dd79b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/jni_core/src/jvm_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ impl JavaVmWrapper {
let libs_path = if let Ok(libs_path) = std::env::var("CONNECTOR_LIBS_PATH") {
libs_path
} else {
return Err(ErrorCode::InternalError(
"environment variable CONNECTOR_LIBS_PATH is not specified".to_string(),
)
.into());
tracing::warn!("environment variable CONNECTOR_LIBS_PATH is not specified, so use default path `./libs` instead");
"./libs".into()
};

let dir = Path::new(&libs_path);
Expand Down

0 comments on commit b0dd79b

Please sign in to comment.