Skip to content

Commit

Permalink
fix(faucet): add build info)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Mar 28, 2024
1 parent 16032ba commit 8a5087e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sn_faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ indicatif = { version = "0.17.5", features = ["tokio"] }
minreq = { version = "2.11.0", features = ["https-rustls"], optional = true }
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
sn_build_info = { path = "../sn_build_info", version = "0.1.5" }
sn_client = { path = "../sn_client", version = "0.105.0" }
sn_logging = { path = "../sn_logging", version = "0.2.25" }
sn_peers_acquisition = { path = "../sn_peers_acquisition", version = "0.2.8" }
Expand Down
4 changes: 3 additions & 1 deletion sn_faucet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use sn_peers_acquisition::{get_peers_from_args, PeersArgs};
use sn_transfers::{get_faucet_data_dir, MainPubkey, NanoTokens, Transfer};
use std::{path::PathBuf, time::Duration};
use tokio::{sync::broadcast::error::RecvError, task::JoinHandle};
use tracing::{error, info};
use tracing::{debug, error, info};

#[tokio::main]
async fn main() -> Result<()> {
Expand All @@ -50,10 +50,12 @@ async fn main() -> Result<()> {
("sn_registers".to_string(), Level::TRACE),
("sn_transfers".to_string(), Level::TRACE),
];

let mut log_builder = LogBuilder::new(logging_targets);
log_builder.output_dest(opt.log_output_dest);
let _log_handles = log_builder.initialize()?;

debug!("Built with git version: {}", sn_build_info::git_info());
info!("Instantiating a SAFE Test Faucet...");

let secret_key = bls::SecretKey::random();
Expand Down

0 comments on commit 8a5087e

Please sign in to comment.