Skip to content

Commit

Permalink
warm_bookmarks_cache: log warm-up in thousands not hundreds
Browse files Browse the repository at this point in the history
Summary: Now that warm-up is faster and there are increasingly more repos, switch to logging every 1000 bookmarks to reduce logspam.

Reviewed By: lmvasquezg

Differential Revision: D63949004

fbshipit-source-id: f4fa4be489b0ac455199e721a53e2d06ea042844
  • Loading branch information
markbt authored and facebook-github-bot committed Oct 15, 2024
1 parent 5266694 commit 311171a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/mononoke/bookmarks/warm_bookmarks_cache/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ async fn init_bookmarks(
.buffered(100)
.try_filter_map(|element| async move {
let (remaining, entry) = element;
if remaining % 100 == 0 {
if remaining % 1000 == 0 {
info!(ctx.logger(), "{} bookmarks left to warm up", remaining);
}
Result::<_, Error>::Ok(entry)
Expand Down

0 comments on commit 311171a

Please sign in to comment.