Skip to content

Commit 452b4a0

Browse files
committed
feat: improve http_health_check output
1 parent ac18605 commit 452b4a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/http_health_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async fn main() {
1111
let args: Vec<String> = env::args().collect();
1212
if args.len() != 2 {
1313
eprintln!("Usage: cargo run --bin http_health_check <HEALTH_URL>");
14-
eprintln!("Example: cargo run --bin http_health_check http://127.0.0.1:1212/api/health_check");
14+
eprintln!("Example: cargo run --bin http_health_check http://127.0.0.1:1313/health_check");
1515
std::process::exit(1);
1616
}
1717

src/bootstrap/jobs/health_check_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub async fn start_job(config: Arc<Configuration>) -> JoinHandle<()> {
5555

5656
// Wait until the API server job is running
5757
match rx_start.await {
58-
Ok(msg) => info!("Torrust Health Check API server started on socket: {}", msg.address),
58+
Ok(msg) => info!("Torrust Health Check API server started on: http://{}", msg.address),
5959
Err(e) => panic!("the Health Check API server was dropped: {e}"),
6060
}
6161

0 commit comments

Comments
 (0)