Skip to content

Commit f986a28

Browse files
committed
remove prints
1 parent d16ad53 commit f986a28

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ dev = [
2828

2929
[tool.uv]
3030
# Rebuild package when any rust files change
31-
cache-keys = [{file = "pyproject.toml"}, {file = "Cargo.toml"}, {file = "**/*.rs"}]
31+
cache-keys = [{file = "pyproject.toml"}, {file = "Cargo.toml"}, {file = "**/*.rs"}, {file = "../lib/ontoenv/Cargo.toml"}, {file = "../lib/**/*.rs"}]

python/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,28 +208,23 @@ impl OntoEnv {
208208
} else if let Some(p) = path {
209209
if !recreate {
210210
if let Some(root) = ::ontoenv::api::find_ontoenv_root_from(&p) {
211-
println!("Loading OntoEnv from directory: {}", root.display());
212211
OntoEnvRs::load_from_directory(root, read_only).map_err(anyhow_to_pyerr)
213212
} else {
214213
let cfg = config::Config::default(p).map_err(|e| {
215214
PyErr::new::<pyo3::exceptions::PyValueError, _>(e.to_string())
216215
})?;
217-
println!("Creating new OntoEnv in directory with config {:?}", cfg);
218216
OntoEnvRs::init(cfg, false).map_err(anyhow_to_pyerr)
219217
}
220218
} else {
221219
let cfg = config::Config::default(p).map_err(|e| {
222220
PyErr::new::<pyo3::exceptions::PyValueError, _>(e.to_string())
223221
})?;
224-
println!("Creating new OntoEnv in directory with config {:?} (recreate)", cfg);
225222
OntoEnvRs::init(cfg, true).map_err(anyhow_to_pyerr)
226223
}
227224
} else {
228-
println!("Creating new offline OntoEnv");
229225
OntoEnvRs::new_offline().map_err(anyhow_to_pyerr)
230226
}?;
231227

232-
println!("OntoEnv initialized successfully");
233228
let inner = Arc::new(Mutex::new(Some(env)));
234229

235230
Ok(OntoEnv {

0 commit comments

Comments
 (0)