Skip to content

Commit

Permalink
Chore: adjust log level for snapshot trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Apr 29, 2024
1 parent 41f6bd2 commit 3023a01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openraft/src/engine/handler/snapshot_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ where C: RaftTypeConfig
/// Trigger building snapshot if there is no pending building job.
#[tracing::instrument(level = "debug", skip_all)]
pub(crate) fn trigger_snapshot(&mut self) -> bool {
// TODO: test
tracing::info!("{}", func_name!());
tracing::debug!("{}", func_name!());

if self.state.io_state_mut().building_snapshot() {
tracing::debug!("snapshot building is in progress, do not trigger snapshot");
Expand Down

0 comments on commit 3023a01

Please sign in to comment.