warm_bookmarks_cache: remove debug log for each iteration

Summary:
Debug logging each iteration of the background bookmark cache updater is
distracting.  Instead, just log when it starts.

Reviewed By: krallin

Differential Revision: D17928810

fbshipit-source-id: 77cecc8641b145e921acc4fc91c1be14c22576c9
This commit is contained in:
Mark Thomas 2019-10-15 07:00:06 -07:00 committed by Facebook Github Bot
parent 741545e9a3
commit 2305548152

View File

@ -85,19 +85,14 @@ fn spawn_bookmarks_updater(
repo: BlobRepo,
) {
tokio::spawn(future::lazy(move || {
debug!(logger, "Starting warm bookmark cache updater");
stream::repeat(())
.and_then({
cloned!(logger);
move |()| {
debug!(logger, "updating bookmark cache...");
update_bookmarks(bookmarks.clone(), ctx.clone(), repo.clone()).timed(
|stats, _| {
STATS::cached_bookmark_update_time_ms
.add_value(stats.completion_time.as_millis_unchecked() as i64);
Ok(())
},
)
}
.and_then(move |()| {
update_bookmarks(bookmarks.clone(), ctx.clone(), repo.clone()).timed(|stats, _| {
STATS::cached_bookmark_update_time_ms
.add_value(stats.completion_time.as_millis_unchecked() as i64);
Ok(())
})
})
.then(|_| {
let dur = Duration::from_millis(1000);