Skip to content

Commit

Permalink
sqlite/retention: log at debug not trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Jun 13, 2024
1 parent dad3089 commit 4cea075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sqlite/retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async fn delete_to_size(
) -> Result<u64> {
let file_size = crate::file::file_size(filename)? as usize;
if file_size < bytes {
trace!("Database less than max size of {} bytes", bytes);
debug!("Database less than max size of {} bytes", bytes);
return Ok(0);
}

Expand All @@ -192,7 +192,7 @@ async fn delete_to_size(
return Ok(deleted);
}

trace!("Database file size of {} bytes is greater than max allowed size of {} bytes, deleting events",
debug!("Database file size of {} bytes is greater than max allowed size of {} bytes, deleting events",
file_size, bytes);
deleted += delete_events(conn.clone(), 1000).await?;
std::thread::sleep(Duration::from_millis(100));
Expand Down

0 comments on commit 4cea075

Please sign in to comment.