Skip to content

Commit 4a2a6ef

Browse files
author
Ludo Galabru
committed
fix: log level, zeromq dependency
1 parent fa50584 commit 4a2a6ef

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

components/chainhook-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hex = "0.4.3"
1717
rand = "0.8.5"
1818
# tikv-client = { git = "https://github.com/tikv/client-rust.git", rev = "8f54e6114227718e256027df2577bbacdf425f86" }
1919
# raft-proto = { git = "https://github.com/tikv/raft-rs", rev="f73766712a538c2f6eb135b455297ad6c03fc58d", version = "0.7.0"}
20-
chainhook-event-observer = { version = "=1.0.7", default-features = false, features = ["ordinals"], path = "../chainhook-event-observer" }
20+
chainhook-event-observer = { version = "=1.0.7", default-features = false, features = ["ordinals", "zeromq"], path = "../chainhook-event-observer" }
2121
chainhook-types = { version = "=1.0.3", path = "../chainhook-types-rs" }
2222
clarinet-files = "1"
2323
hiro-system-kit = "0.1.0"

components/chainhook-event-observer/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ threadpool = "1.8.1"
4949
rand = "0.8.5"
5050
hex-simd = "0.8.0"
5151
serde_cbor = "0.11.2"
52-
zeromq = { version = "*", default-features = false, features = ["tokio-runtime", "tcp-transport"] }
52+
zeromq = { version = "*", default-features = false, features = ["tokio-runtime", "tcp-transport"], optional = true }
5353
dashmap = "5.4.0"
5454
fxhash = "0.2.1"
5555

@@ -64,6 +64,7 @@ features = ["lz4", "snappy"]
6464

6565
[features]
6666
default = ["cli", "ordinals"]
67+
zeromq = ["zeromq"]
6768
cli = ["clap", "clap_generate", "toml", "ctrlc", "log"]
6869
log = ["hiro-system-kit/log"]
6970
ordinals = ["rocksdb", "chrono", "anyhow"]

components/chainhook-event-observer/src/hord/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,9 @@ pub fn retrieve_inscribed_satoshi_points_from_block(
242242
}
243243
Err(e) => {
244244
moved_ctx.try_log(|logger| {
245-
slog::error!(
245+
slog::warn!(
246246
logger,
247-
"Unable to retrieve satoshi point in {} ({}): {e}",
248-
transaction_id.hash,
249-
block_identifier.index
247+
"Unable to open db: {e}",
250248
);
251249
});
252250
}

0 commit comments

Comments
 (0)