fix: log level, zeromq dependency

This commit is contained in:
Ludo Galabru
2023-05-12 09:53:57 -04:00
parent fa5058471a
commit 4a2a6ef297
3 changed files with 5 additions and 6 deletions

View File

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

View File

@@ -49,7 +49,7 @@ threadpool = "1.8.1"
rand = "0.8.5"
hex-simd = "0.8.0"
serde_cbor = "0.11.2"
zeromq = { version = "*", default-features = false, features = ["tokio-runtime", "tcp-transport"] }
zeromq = { version = "*", default-features = false, features = ["tokio-runtime", "tcp-transport"], optional = true }
dashmap = "5.4.0"
fxhash = "0.2.1"
@@ -64,6 +64,7 @@ features = ["lz4", "snappy"]
[features]
default = ["cli", "ordinals"]
zeromq = ["zeromq"]
cli = ["clap", "clap_generate", "toml", "ctrlc", "log"]
log = ["hiro-system-kit/log"]
ordinals = ["rocksdb", "chrono", "anyhow"]

View File

@@ -242,11 +242,9 @@ pub fn retrieve_inscribed_satoshi_points_from_block(
}
Err(e) => {
moved_ctx.try_log(|logger| {
slog::error!(
slog::warn!(
logger,
"Unable to retrieve satoshi point in {} ({}): {e}",
transaction_id.hash,
block_identifier.index
"Unable to open db: {e}",
);
});
}