Skip to content

Commit

Permalink
fix: enable feature gated logging option
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Jan 7, 2025
1 parent ede5f34 commit 178a064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ant-cli/src/evm_network.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use autonomi::{get_evm_network_from_env, local_evm_network_from_csv, Network};
use color_eyre::eyre::Result;
use color_eyre::eyre::{Context, Result};

use std::sync::OnceLock;

Expand All @@ -12,7 +12,9 @@ pub(crate) fn get_evm_network(local: bool) -> Result<Network> {

let res = match get_evm_network_from_env() {
Ok(evm_network) => Ok(evm_network),
Err(_) if local => Ok(local_evm_network_from_csv()?),
Err(_) if local => {
Ok(local_evm_network_from_csv().wrap_err("Failed to get local EVM network")?)
}
Err(_) => Ok(Default::default()),
};

Expand Down
5 changes: 2 additions & 3 deletions ant-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ name = "antnode"
path = "src/bin/antnode/main.rs"

[features]
default = ["metrics", "upnp", "open-metrics"]
default = ["upnp", "open-metrics"]
extension-module = ["pyo3/extension-module"]
loud = ["ant-networking/loud"] # loud mode: print important messages to console
metrics = []
nightly = []
open-metrics = ["ant-networking/open-metrics", "prometheus-client"]
otlp = ["ant-logging/otlp"]
Expand All @@ -27,7 +26,7 @@ upnp = ["ant-networking/upnp"]
ant-bootstrap = { path = "../ant-bootstrap", version = "0.1.2" }
ant-build-info = { path = "../ant-build-info", version = "0.1.22" }
ant-evm = { path = "../ant-evm", version = "0.1.7" }
ant-logging = { path = "../ant-logging", version = "0.2.43" }
ant-logging = { path = "../ant-logging", version = "0.2.43", features = ["process-metrics"] }
ant-networking = { path = "../ant-networking", version = "0.3.2" }
ant-protocol = { path = "../ant-protocol", version = "0.3.2" }
ant-registers = { path = "../ant-registers", version = "0.4.6" }
Expand Down

0 comments on commit 178a064

Please sign in to comment.