use micromegas::micromegas_main;
use micromegas::tracing::prelude::*;
#[micromegas_main(interop_max_level = "info")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
info!("Auth test starting");
info!("Check the startup logs for authentication configuration");
for i in 0..5 {
info!("Test event {}", i);
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
}
info!("Auth test complete - check ingestion server logs if MICROMEGAS_TELEMETRY_URL was set");
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
Ok(())
}