[fix] no longer logging ping pong
This commit is contained in:
parent
4b5a9fdf7d
commit
16006dc26e
2 changed files with 15 additions and 11 deletions
|
|
@ -171,8 +171,9 @@ impl OmikronConnection {
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
async fn process_message(self: Arc<Self>, cv: CommunicationValue) -> OmikronResult<()> {
|
||||
// Log incoming
|
||||
log_cv_in!(PrintType::Omikron, &cv);
|
||||
if !cv.is_type(CommunicationType::pong) && !cv.is_type(CommunicationType::ping) {
|
||||
log_cv_in!(PrintType::Omikron, &cv);
|
||||
}
|
||||
|
||||
let msg_id = cv.get_id();
|
||||
|
||||
|
|
@ -1055,7 +1056,9 @@ impl OmikronConnection {
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
async fn send(self: Arc<Self>, cv: &CommunicationValue) -> OmikronResult<()> {
|
||||
log_cv_out!(PrintType::Omikron, cv);
|
||||
if !cv.is_type(CommunicationType::pong) && !cv.is_type(CommunicationType::ping) {
|
||||
log_cv_out!(PrintType::Omikron, cv);
|
||||
}
|
||||
|
||||
let guard = self.sender.lock().await;
|
||||
let sender = guard.as_ref().ok_or(OmikronError::NotConnected)?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue