Extra debugging/logging
This commit is contained in:
parent
54da526d02
commit
216f4fc461
|
@ -170,6 +170,7 @@ async fn main() -> Result<(), ()> {
|
|||
.route("/metrics", get(metrics_handler))
|
||||
.with_state(config);
|
||||
|
||||
println!("running at 0.0.0.0:6534");
|
||||
let _ = axum::Server::bind(&"0.0.0.0:6534".parse().unwrap())
|
||||
.serve(app.into_make_service())
|
||||
.await;
|
||||
|
@ -201,11 +202,13 @@ async fn metrics(config: Config) -> Result<Vec<u8>, WsError> {
|
|||
|
||||
if config.groups.is_some() {
|
||||
for (name, group) in config.groups.unwrap() {
|
||||
println!("scanning group {}", &name);
|
||||
let _ = group_metrics(&client, &auth_cookie, name, group).await;
|
||||
}
|
||||
}
|
||||
if config.worlds.is_some() {
|
||||
for (name, id) in config.worlds.unwrap() {
|
||||
println!("scanning world {}", &name);
|
||||
let _ = world_metrics(&client, &auth_cookie, name, id).await;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue