Skip to content

Commit

Permalink
Log to debug SHM error (#1246)
Browse files Browse the repository at this point in the history
* Log to debug SHM error

* Fix clippy
  • Loading branch information
Mallets authored Jul 19, 2024
1 parent b31a410 commit 2e6edca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions io/zenoh-transport/src/multicast/rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
//
use std::sync::MutexGuard;

#[cfg(feature = "shared-memory")]
use tracing::error;
use zenoh_core::{zlock, zread};
use zenoh_protocol::{
core::{Locator, Priority, Reliability},
Expand Down Expand Up @@ -47,7 +45,7 @@ impl TransportMulticastInner {
{
if self.manager.config.multicast.is_shm {
if let Err(e) = crate::shm::map_zmsg_to_shmbuf(&mut msg, &self.manager.shmr) {
error!("Error receiving SHM buffer: {e}");
tracing::debug!("Error receiving SHM buffer: {e}");
return Ok(());
}
}
Expand Down
4 changes: 1 addition & 3 deletions io/zenoh-transport/src/unicast/lowlatency/rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
#[cfg(feature = "shared-memory")]
use tracing::error;
use zenoh_buffers::{
reader::{HasReader, Reader},
ZSlice,
Expand Down Expand Up @@ -40,7 +38,7 @@ impl TransportUnicastLowlatency {
{
if self.config.shm.is_some() {
if let Err(e) = crate::shm::map_zmsg_to_shmbuf(&mut msg, &self.manager.shmr) {
error!("Error receiving SHM buffer: {e}");
tracing::debug!("Error receiving SHM buffer: {e}");
return Ok(());
}
}
Expand Down
4 changes: 1 addition & 3 deletions io/zenoh-transport/src/unicast/universal/rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
//
use std::sync::MutexGuard;

#[cfg(feature = "shared-memory")]
use tracing::error;
use zenoh_core::{zlock, zread};
use zenoh_link::Link;
use zenoh_protocol::{
Expand Down Expand Up @@ -48,7 +46,7 @@ impl TransportUnicastUniversal {
{
if self.config.shm.is_some() {
if let Err(e) = crate::shm::map_zmsg_to_shmbuf(&mut msg, &self.manager.shmr) {
error!("Error receiving SHM buffer: {e}");
tracing::debug!("Error receiving SHM buffer: {e}");
return Ok(());
}
}
Expand Down

0 comments on commit 2e6edca

Please sign in to comment.