Skip to content

Commit

Permalink
feat: improve http_health_check output
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jan 9, 2024
1 parent ac18605 commit 452b4a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/http_health_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async fn main() {
let args: Vec<String> = env::args().collect();
if args.len() != 2 {
eprintln!("Usage: cargo run --bin http_health_check <HEALTH_URL>");
eprintln!("Example: cargo run --bin http_health_check http://127.0.0.1:1212/api/health_check");
eprintln!("Example: cargo run --bin http_health_check http://127.0.0.1:1313/health_check");
std::process::exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/jobs/health_check_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub async fn start_job(config: Arc<Configuration>) -> JoinHandle<()> {

// Wait until the API server job is running
match rx_start.await {
Ok(msg) => info!("Torrust Health Check API server started on socket: {}", msg.address),
Ok(msg) => info!("Torrust Health Check API server started on: http://{}", msg.address),

Check warning on line 58 in src/bootstrap/jobs/health_check_api.rs

View check run for this annotation

Codecov / codecov/patch

src/bootstrap/jobs/health_check_api.rs#L58

Added line #L58 was not covered by tests
Err(e) => panic!("the Health Check API server was dropped: {e}"),
}

Expand Down

0 comments on commit 452b4a0

Please sign in to comment.