Skip to content

Commit

Permalink
Add backend startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Jan 12, 2025
1 parent 2ca1c53 commit 8f1cfec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use std::sync::Arc;

#[actix_web::main]
async fn main() -> std::io::Result<()> {
println!("PasteBook backend service starting...");

env_logger::init();

let database_url = env::var("S3_ENDPOINT").expect("S3_ENDPOINT must be set");
Expand Down Expand Up @@ -49,7 +51,9 @@ async fn main() -> std::io::Result<()> {

let delete_handler = DeleteHandler::new(Arc::clone(&aws_service), Arc::clone(&mongo_service));
delete_handler.start_delete_loop();


println!("Pre-bind complete. Starting server...");

HttpServer::new(move || {
let cors = Cors::permissive();

Expand Down

0 comments on commit 8f1cfec

Please sign in to comment.