Default log level to to RUST_LOG=solana=info (#5296)
This commit is contained in:
parent
20da2604f8
commit
c63a38ae57
|
@ -2605,9 +2605,9 @@ name = "solana-gossip"
|
|||
version = "0.17.0"
|
||||
dependencies = [
|
||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"solana 0.17.0",
|
||||
"solana-client 0.17.0",
|
||||
"solana-logger 0.17.0",
|
||||
"solana-netutil 0.17.0",
|
||||
"solana-sdk 0.17.0",
|
||||
]
|
||||
|
|
|
@ -10,9 +10,9 @@ homepage = "https://solana.com/"
|
|||
|
||||
[dependencies]
|
||||
clap = "2.33.0"
|
||||
env_logger = "0.6.2"
|
||||
solana = { path = "../core", version = "0.17.0" }
|
||||
solana-client = { path = "../client", version = "0.17.0" }
|
||||
solana-logger = { path = "../logger", version = "0.17.0" }
|
||||
solana-netutil = { path = "../netutil", version = "0.17.0" }
|
||||
solana-sdk = { path = "../sdk", version = "0.17.0" }
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ fn pubkey_validator(pubkey: String) -> Result<(), String> {
|
|||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn error::Error>> {
|
||||
env_logger::Builder::from_env(env_logger::Env::new().default_filter_or("solana=info")).init();
|
||||
solana_logger::setup();
|
||||
|
||||
let mut entrypoint_addr = SocketAddr::from(([127, 0, 0, 1], 8001));
|
||||
let entrypoint_string = entrypoint_addr.to_string();
|
||||
|
|
|
@ -9,7 +9,7 @@ static INIT: Once = Once::new();
|
|||
/// Setup function that is only run once, even if called multiple times.
|
||||
pub fn setup() {
|
||||
INIT.call_once(|| {
|
||||
env_logger::Builder::from_default_env()
|
||||
env_logger::Builder::from_env(env_logger::Env::new().default_filter_or("solana=info"))
|
||||
.default_format_timestamp_nanos(true)
|
||||
.init();
|
||||
});
|
||||
|
|
|
@ -60,7 +60,6 @@ solana_ledger_tool=$(solana_program ledger-tool)
|
|||
solana_wallet=$(solana_program wallet)
|
||||
solana_replicator=$(solana_program replicator)
|
||||
|
||||
export RUST_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
|
||||
export RUST_BACKTRACE=1
|
||||
|
||||
# shellcheck source=scripts/configure-metrics.sh
|
||||
|
|
Loading…
Reference in New Issue