Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Delay logging until after version print
Alexis Sellier committed 2 years ago
commit 62aaec5f53bd41c69a7051929f2c732b682d842e
parent 85b092872d932f863251350b7dd3996bcb04524d
1 file changed +3 -4
modified radicle-node/src/main.rs
@@ -132,12 +132,12 @@ impl Options {
fn execute() -> anyhow::Result<()> {
    logger::init(log::Level::Debug)?;

-
    log::info!(target: "node", "Starting node..");
-
    log::info!(target: "node", "Version {} ({})", env!("CARGO_PKG_VERSION"), env!("GIT_HEAD"));
-

    let home = profile::home()?;
    let mut config = profile::Config::load(&home.config())?.node;
+
    let options = Options::from_env(&mut config)?;

+
    log::info!(target: "node", "Starting node..");
+
    log::info!(target: "node", "Version {} ({})", env!("CARGO_PKG_VERSION"), env!("GIT_HEAD"));
    log::info!(target: "node", "Unlocking node keystore..");

    let passphrase = profile::env::passphrase();
@@ -146,7 +146,6 @@ fn execute() -> anyhow::Result<()> {

    log::info!(target: "node", "Node ID is {}", signer.public_key());

-
    let options = Options::from_env(&mut config)?;
    let proxy = net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), 9050);
    let daemon = options.daemon.unwrap_or_else(|| {
        net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), radicle::git::PROTOCOL_PORT)