Skip to content

Commit 67058d6

Browse files
authored
fix: remove tracing subscriber (#49)
We'll add it back down at the rust level, I think? - Closes #48
1 parent dcdd207 commit 67058d6

File tree

6 files changed

+31
-75
lines changed

6 files changed

+31
-75
lines changed

Cargo.lock

Lines changed: 25 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,19 @@ pyo3-async-runtimes = { version = "0.23.0", features = [
2121
"tokio",
2222
"tokio-runtime",
2323
] }
24-
pyo3-log = "0.12.1"
2524
pythonize = "0.23.0"
2625
serde = "1.0.217"
2726
serde_json = "1.0.138"
28-
stac = { version = "0.12.0", features = [
27+
stac = { features = [
2928
"geoparquet-compression",
3029
"object-store-all",
3130
], git = "https://github.com/stac-utils/stac-rs" }
32-
stac-api = { version = "0.7.1", features = [
31+
stac-api = { features = [
3332
"client",
3433
"python",
3534
], git = "https://github.com/stac-utils/stac-rs" }
36-
stac-cli = { version = "0.5.1", git = "https://github.com/stac-utils/stac-rs" }
37-
stac-duckdb = { version = "0.1.0", git = "https://github.com/stac-utils/stac-rs" }
35+
stac-cli = { git = "https://github.com/stac-utils/stac-rs" }
36+
stac-duckdb = { git = "https://github.com/stac-utils/stac-rs" }
3837
thiserror = "2.0.11"
3938
clap = "4.5.30"
40-
tracing-subscriber = "0.3.19"
4139
tokio = { version = "1.43.0", features = ["rt-multi-thread"] }

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44

55
uv run maturin dev --uv
66
uv run pytest "$@"
7-
uv run stacrs --help
7+
uv run stacrs translate spec-examples/v1.1.0/simple-item.json /dev/null

src/cli.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ pub fn main(py: Python<'_>) -> PyResult<i64> {
99
.getattr("signal")?
1010
.call1((signal.getattr("SIGINT")?, signal.getattr("SIG_DFL")?))?;
1111
let args = Stacrs::parse_from(std::env::args_os().skip(1));
12-
tracing_subscriber::fmt()
13-
.with_max_level(args.log_level())
14-
.init();
1512
std::process::exit(
1613
tokio::runtime::Builder::new_multi_thread()
1714
.enable_all()
1815
.build()
1916
.unwrap()
2017
.block_on(async {
21-
// We skip one because the first argument is going to be the python interpreter.
2218
match args.run().await {
2319
Ok(()) => 0,
2420
Err(err) => {

src/duckdb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ impl DuckdbClient {
1919
let config = Config {
2020
use_s3_credential_chain,
2121
use_hive_partitioning,
22+
convert_wkb: true,
2223
};
2324
let client = Client::with_config(config)?;
2425
Ok(DuckdbClient(Mutex::new(client)))

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ type Result<T> = std::result::Result<T, Error>;
1818

1919
#[pymodule]
2020
fn stacrs(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
21-
pyo3_log::init();
22-
2321
m.add("StacrsError", py.get_type::<error::StacrsError>())?;
2422

2523
m.add_class::<duckdb::DuckdbClient>()?;

0 commit comments

Comments
 (0)