void () { String formattedTime = StopWatch.formatTime(getCurrentTimeMillis() - myStartTime); mySpan.setAttribute("numberOfCommits", myNewIndexedCommits.get()); mySpan.setAttribute("rootName", myRoot.getName()); if (myFull) { LOG.info(formattedTime + " for indexing " + myNewIndexedCommits + " commits in " + myRoot.getName()); } else { int leftCommits = myCommits.size() - myNewIndexedCommits.get() - myOldCommits.get(); String leftCommitsMessage = (leftCommits > 0) ? ". " + leftCommits + " commits left" : ""; mySpan.setAttribute("totalCommits", myCommits.size()); mySpan.setAttribute("commitsLeft", leftCommits); LOG.info(formattedTime + " for indexing " + myNewIndexedCommits + " new commits out of " + myCommits.size() + " in " + myRoot.getName() + leftCommitsMessage); } mySpan.end(); myScope.close(); }