20 lines
666 B
Rust
20 lines
666 B
Rust
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
|
|
|
#[tokio::main]
|
|
async fn main() -> anyhow::Result<()> {
|
|
// Basic tracing setup (adjust as needed)
|
|
tracing_subscriber::registry()
|
|
.with(
|
|
tracing_subscriber::EnvFilter::try_from_default_env()
|
|
.unwrap_or_else(|_| "info".into()),
|
|
)
|
|
.with(tracing_subscriber::fmt::layer())
|
|
.init();
|
|
|
|
// TODO: invoke your API server bootstrap here.
|
|
// For example, if you have a function like `owly-news-api::run_server().await`
|
|
// call it here. This is just a placeholder:
|
|
tracing::info!("owly-news app starting...");
|
|
Ok(())
|
|
}
|