Skip to content

Commit 1637d94

Browse files
committed
incorporating remarks
1 parent 09eba61 commit 1637d94

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

core/dtn7/src/cla/ecla/processing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub fn handle_packet(connector_name: String, addr: String, packet: Packet) {
208208
let service_block: ServiceBlock =
209209
serde_cbor::from_slice(pdp.service_block.as_slice()).unwrap();
210210

211-
info!("Received beacon: ecla={} eid={} addr={} service_block={}", me.name, pdp.eid, pdp.addr, service_block);
211+
debug!("Received beacon: ecla={} eid={} addr={} service_block={}", me.name, pdp.eid, pdp.addr, service_block);
212212

213213
peers_add(DtnPeer::new(
214214
pdp.eid.clone(),

core/dtn7/src/dtnd/httpd.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ use bp7::EndpointID;
3838
use http::StatusCode;
3939
use humansize::format_size;
4040
use humansize::DECIMAL;
41-
use log::info;
42-
use log::trace;
43-
use log::{debug, warn};
41+
use log::{trace, debug, info, warn};
4442
use serde::Serialize;
4543
use std::collections::HashMap;
4644
use std::convert::{TryFrom, TryInto};
@@ -450,7 +448,7 @@ async fn insert_get(extract::RawQuery(query): extract::RawQuery) -> Result<Strin
450448
async fn insert_post(body: bytes::Bytes) -> Result<String, (StatusCode, &'static str)> {
451449
let bytes = body.to_vec();
452450
let b_len = bytes.len();
453-
debug!("Received: {:?} bytes", b_len);
451+
trace!("Received: {:?} bytes", b_len);
454452
if let Ok(bndl) = bp7::Bundle::try_from(bytes.to_vec()) {
455453
debug!(
456454
"Sending bundle {} to {}",

core/dtn7/src/routing/epidemic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::RoutingAgent;
22
use crate::routing::{RoutingCmd, RoutingNotifcation};
33
use crate::PEERS;
44
use async_trait::async_trait;
5-
use log::debug;
5+
use log::{debug, trace};
66
use std::collections::{HashMap, HashSet};
77
use tokio::sync::mpsc;
88
use tokio::sync::mpsc::Sender;
@@ -85,7 +85,7 @@ async fn handle_routing_cmd(mut rx: mpsc::Receiver<RoutingCmd>) {
8585
let mut clas = Vec::new();
8686
let mut delete_afterwards = false;
8787
for (_, p) in (*PEERS.lock()).iter() {
88-
debug!("checking peer {:?} (node_name={})", p, p.node_name());
88+
trace!("checking peer {:?} (node_name={})", p, p.node_name());
8989
if !core.contains(bp.id(), &p.node_name()) {
9090
if let Some(cla) = p.first_cla() {
9191
core.add(bp.id().to_string(), p.node_name().clone());

core/dtn7/src/routing/flooding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::RoutingAgent;
22
use crate::routing::RoutingCmd;
33
use crate::PEERS;
44
use async_trait::async_trait;
5-
use log::debug;
5+
use log::{debug, trace};
66
use tokio::sync::mpsc;
77
use tokio::sync::mpsc::Sender;
88

@@ -29,7 +29,7 @@ impl FloodingRoutingAgent {
2929
let mut clas = Vec::new();
3030
debug!("checking PEERS due to SenderForBundle request");
3131
for (_, p) in (*PEERS.lock()).iter() {
32-
debug!("checking peer {:?} (p.first_cla={:?})", p, p.first_cla());
32+
trace!("checking peer {:?} (p.first_cla={:?})", p, p.first_cla());
3333
if let Some(cla) = p.first_cla() {
3434
clas.push(cla);
3535
}

0 commit comments

Comments
 (0)