Skip to content

Commit

Permalink
log git revision in sui-node (MystenLabs#7409)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Jan 16, 2023
1 parent c8281df commit 3656856
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions crates/sui-node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ async fn main() -> Result<()> {

let registry_service = metrics::start_prometheus_server(config.metrics_address);
let prometheus_registry = registry_service.default_registry();
info!(
"Started Prometheus HTTP endpoint at {}",
config.metrics_address
);

// Initialize logging
let (_guard, filter_handle) =
Expand All @@ -49,6 +45,15 @@ async fn main() -> Result<()> {
.with_prom_registry(&prometheus_registry)
.init();

info!(
"Started Prometheus HTTP endpoint at {}",
config.metrics_address
);

if let Some(git_rev) = option_env!("GIT_REVISION") {
info!("Sui Node built at git revision {git_rev}");
}

if let Some(listen_address) = args.listen_address {
config.network_address = listen_address;
}
Expand Down

0 comments on commit 3656856

Please sign in to comment.