Add debugs logs on access to external IDs and group names note branches

We want to see in a trace when a request triggers many accesses to the
external IDs or group names note branches.

Change-Id: Ia05ad6458b0203a340bde76ae4c256cb8e800d1b
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2018-08-16 17:22:31 +02:00
parent 8937b7f077
commit 151b84bbdf
2 changed files with 11 additions and 0 deletions

View File

@@ -615,6 +615,8 @@ public class ExternalIdNotes extends VersionedMetaData {
@Override
protected void onLoad() throws IOException, ConfigInvalidException {
logger.atFine().log("Reading external IDs");
noteMap = revision != null ? NoteMap.read(reader, revision) : NoteMap.newEmptyMap();
if (afterReadRevision != null) {
@@ -701,6 +703,8 @@ public class ExternalIdNotes extends VersionedMetaData {
return false;
}
logger.atFine().log("Updating external IDs");
if (Strings.isNullOrEmpty(commit.getMessage())) {
commit.setMessage("Update external IDs\n");
}