|
14 | 14 | //! Refer to the [configuration documentation](https://docs.rs/torrust-tracker-configuration)
|
15 | 15 | //! for the API configuration options.
|
16 | 16 |
|
17 |
| -use log::info; |
18 | 17 | use tokio::sync::oneshot;
|
19 | 18 | use tokio::task::JoinHandle;
|
20 | 19 | use torrust_tracker_configuration::HealthCheckApi;
|
| 20 | +use tracing::debug; |
21 | 21 |
|
22 | 22 | use super::Started;
|
23 | 23 | use crate::app::Registry;
|
@@ -46,18 +46,18 @@ pub async fn start_job(config: &HealthCheckApi, register: Registry) -> JoinHandl
|
46 | 46 |
|
47 | 47 | // Run the API server
|
48 | 48 | let join_handle = tokio::spawn(async move {
|
49 |
| - info!(target: "Health Check API", "Starting on: http://{}", bind_addr); |
| 49 | + debug!(target: "Health Check API", "Starting on: http://{}", bind_addr); |
50 | 50 |
|
51 | 51 | let handle = server::start(bind_addr, tx_start, rx_halt, register);
|
52 | 52 |
|
53 | 53 | if let Ok(()) = handle.await {
|
54 |
| - info!(target: "Health Check API", "Stopped server running on: http://{}", bind_addr); |
| 54 | + debug!(target: "Health Check API", "Stopped server running on: http://{}", bind_addr); |
55 | 55 | }
|
56 | 56 | });
|
57 | 57 |
|
58 | 58 | // Wait until the API server job is running
|
59 | 59 | match rx_start.await {
|
60 |
| - Ok(msg) => info!(target: "Health Check API", "Started on: http://{}", msg.address), |
| 60 | + Ok(msg) => debug!(target: "Health Check API", "Started on: http://{}", msg.address), |
61 | 61 | Err(e) => panic!("the Health Check API server was dropped: {e}"),
|
62 | 62 | }
|
63 | 63 |
|
|
0 commit comments