Skip to content

Commit

Permalink
Fix: debug level check
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Apr 22, 2023
1 parent 17a658f commit b97edb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openraft/src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,9 @@ where
E: Debug,
{
let sum = if tracing::enabled!(Level::DEBUG) {
None
} else {
Some(mes.summary())
} else {
None
};

let send_res = self.inner.tx_api.send(mes);
Expand Down

0 comments on commit b97edb4

Please sign in to comment.