diff --git a/upub/cli/src/lib.rs b/upub/cli/src/lib.rs index 7fe394f5..5cc88b78 100644 --- a/upub/cli/src/lib.rs +++ b/upub/cli/src/lib.rs @@ -94,6 +94,7 @@ pub enum CliCommand { } pub async fn run(ctx: upub::Context, command: CliCommand) -> Result<(), Box> { + tracing::info!("running cli task: {command:?}"); match command { CliCommand::Faker { count } => Ok(faker(ctx, count as i64).await?), diff --git a/upub/routes/src/lib.rs b/upub/routes/src/lib.rs index c58addb4..d99081c3 100644 --- a/upub/routes/src/lib.rs +++ b/upub/routes/src/lib.rs @@ -49,9 +49,9 @@ pub async fn serve(ctx: upub::Context, bind: String) -> Result<(), std::io::Erro .mastodon_routes() // no-op if mastodon feature is disabled .with_state(ctx); - // run our app with hyper, listening locally on port 3000 - let listener = tokio::net::TcpListener::bind(bind).await?; + tracing::info!("serving api routes on {bind}"); + let listener = tokio::net::TcpListener::bind(bind).await?; axum::serve(listener, router).await?; Ok(()) diff --git a/upub/worker/src/lib.rs b/upub/worker/src/lib.rs index 1021f1a9..7bffa975 100644 --- a/upub/worker/src/lib.rs +++ b/upub/worker/src/lib.rs @@ -13,6 +13,7 @@ pub fn spawn( ) -> tokio::task::JoinHandle<()> { use dispatcher::JobDispatcher; tokio::spawn(async move { + tracing::info!("starting worker task"); ctx.run(concurrency, poll, filter).await }) }