mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-31 15:11:05 +00:00
Print current version at startup
This commit is contained in:
+2
-2
@@ -165,7 +165,7 @@ async fn health(aggregator: web::Data<Addr<Aggregator>>) -> Result<HttpResponse,
|
|||||||
/// This can be changed using the `PORT` and `BIND` ENV variables.
|
/// This can be changed using the `PORT` and `BIND` ENV variables.
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
let opts: Opts = Opts::parse();
|
let opts = Opts::parse();
|
||||||
let log_level = &opts.log_level;
|
let log_level = &opts.log_level;
|
||||||
SimpleLogger::new().with_level(log_level.into()).init().expect("Must be able to start a logger");
|
SimpleLogger::new().with_level(log_level.into()).init().expect("Must be able to start a logger");
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
let aggregator = Aggregator::new(denylist).start();
|
let aggregator = Aggregator::new(denylist).start();
|
||||||
let factory = LocatorFactory::new();
|
let factory = LocatorFactory::new();
|
||||||
let locator = SyncArbiter::start(4, move || factory.create());
|
let locator = SyncArbiter::start(4, move || factory.create());
|
||||||
|
log::info!("Starting telemetry version: {}", env!("CARGO_PKG_VERSION"));
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
App::new()
|
App::new()
|
||||||
.wrap(middleware::NormalizePath::default())
|
.wrap(middleware::NormalizePath::default())
|
||||||
|
|||||||
Reference in New Issue
Block a user