Extra debugging/logging
All checks were successful
Build Docker Image / nix-flake-check (push) Successful in 1m26s
Build Docker Image / docker-build (push) Successful in 1m58s
Build Docker Image / arm-docker-build (push) Successful in 4m35s

This commit is contained in:
Gabriel Simmer 2023-11-10 13:45:13 +00:00
parent 54da526d02
commit 216f4fc461
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -170,6 +170,7 @@ async fn main() -> Result<(), ()> {
.route("/metrics", get(metrics_handler)) .route("/metrics", get(metrics_handler))
.with_state(config); .with_state(config);
println!("running at 0.0.0.0:6534");
let _ = axum::Server::bind(&"0.0.0.0:6534".parse().unwrap()) let _ = axum::Server::bind(&"0.0.0.0:6534".parse().unwrap())
.serve(app.into_make_service()) .serve(app.into_make_service())
.await; .await;
@ -201,11 +202,13 @@ async fn metrics(config: Config) -> Result<Vec<u8>, WsError> {
if config.groups.is_some() { if config.groups.is_some() {
for (name, group) in config.groups.unwrap() { for (name, group) in config.groups.unwrap() {
println!("scanning group {}", &name);
let _ = group_metrics(&client, &auth_cookie, name, group).await; let _ = group_metrics(&client, &auth_cookie, name, group).await;
} }
} }
if config.worlds.is_some() { if config.worlds.is_some() {
for (name, id) in config.worlds.unwrap() { for (name, id) in config.worlds.unwrap() {
println!("scanning world {}", &name);
let _ = world_metrics(&client, &auth_cookie, name, id).await; let _ = world_metrics(&client, &auth_cookie, name, id).await;
} }
} }