Skip to content

Commit 829524a

Browse files
refactor: downgrade stale _last_checkpoint log from warn! to info! (#777)
## What changes are proposed in this pull request? Downgrade `warn!` to `info!` when `_last_checkpoint` is stale. Since `_last_checkpoint` is only a hint and may frequently be out of date in a busy system, logging it as a warning is unnecessary. Clients can still see the info-level log if needed. Co-authored-by: Zach Schuermann <zachary.zvs@gmail.com>
1 parent 245c10c commit 829524a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/src/log_segment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::{
2121
use delta_kernel_derive::internal_api;
2222

2323
use itertools::Itertools;
24-
use tracing::{debug, warn};
24+
use tracing::{debug, info, warn};
2525
use url::Url;
2626

2727
#[cfg(test)]
@@ -741,7 +741,7 @@ fn list_log_files_with_checkpoint(
741741
));
742742
};
743743
if latest_checkpoint.version != checkpoint_metadata.version {
744-
warn!(
744+
info!(
745745
"_last_checkpoint hint is out of date. _last_checkpoint version: {}. Using actual most recent: {}",
746746
checkpoint_metadata.version,
747747
latest_checkpoint.version

0 commit comments

Comments
 (0)