mononoke: log repo name when bookmark is missing

Summary:
Logs showed that one of the repo is missing a bookmark, however it wasn't clear
which repo. Let's log it to make it clearer.

Reviewed By: HarveyHunt

Differential Revision: D22500793

fbshipit-source-id: c1d5fce66d7b2b119c7365d13511a7e9a6d6ed3f
This commit is contained in:
Stanislau Hlebik 2020-07-13 02:45:30 -07:00 committed by Facebook GitHub Bot
parent 033c556cc4
commit 8daaacbd77

View File

@ -302,7 +302,9 @@ impl Repo {
fn report_bookmark_missing_from_cache(&self, ctx: &CoreContext, bookmark: &BookmarkName) {
error!(
ctx.logger(),
"Monitored bookmark does not exist in the cache: {}", bookmark
"Monitored bookmark does not exist in the cache: {}, repo: {}",
bookmark,
self.blob_repo.name()
);
STATS::missing_from_cache.set_value(