Skip to content

Commit b06d1ac

Browse files
committed
Remove debug logging
1 parent 99b3eec commit b06d1ac

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

nym-api/src/node_status_api/handlers/without_monitor.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use nym_api_requests::models::{
2121
use nym_http_api_common::{FormattedResponse, OutputParams};
2222
use nym_mixnet_contract_common::NodeId;
2323
use nym_types::monitoring::{MonitorMessage, MonitorResults};
24-
use tracing::{error, info};
24+
use tracing::error;
2525

2626
pub(super) fn mandatory_routes() -> Router<AppState> {
2727
Router::new()
@@ -77,8 +77,6 @@ pub(crate) async fn submit_route_monitoring_results(
7777
State(state): State<AppState>,
7878
Json(message): Json<MonitorMessage>,
7979
) -> AxumResult<()> {
80-
info!("############ Received route monitoring results");
81-
8280
if !message.is_in_allowed() {
8381
return Err(AxumErrorResponse::forbidden(
8482
"Monitor not registered to submit results",
@@ -95,15 +93,8 @@ pub(crate) async fn submit_route_monitoring_results(
9593

9694
match message.results() {
9795
MonitorResults::Route(results) => {
98-
info!(
99-
"############ Submitting {} route monitoring results",
100-
results.len()
101-
);
10296
match state.storage.submit_route_monitoring_results(results).await {
103-
Ok(_) => {
104-
info!("############ Successfully submitted route monitoring results");
105-
Ok(())
106-
}
97+
Ok(_) => Ok(()),
10798
Err(err) => {
10899
error!("failed to submit node monitoring results: {err}");
109100
Err(AxumErrorResponse::internal_msg(

0 commit comments

Comments
 (0)