Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit bfdb55b

Browse files
committed
logging improvements, keep the milli second precision.
1 parent b07d524 commit bfdb55b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/com/capitalone/dashboard/collector/GitHubCollectorTask.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ public void collectProcess(Collector collector, List<GitHubRepo> enabledRepos) {
275275
LOG.error("Unexpected exception when collecting url=" + repoUrl, e);
276276
} finally {
277277
String age = readableAge(lastUpdated, start);
278-
long repoEnd = System.currentTimeMillis();
279-
long repoProcSeconds = (repoEnd - repoStart) / 1000;
280-
LOG.info(String.format("%d of %d, repository=%s, itemProcessSeconds=%d, lastUpdated=%d [%s], status=%s",
281-
repoCount, enabledRepos.size(), repoUrl, repoProcSeconds, lastUpdated, age, statusString));
278+
long timeTaken = System.currentTimeMillis() - repoStart;
279+
LOG.info(String.format("%d of %d, repository=%s, timeTaken=%d lastUpdated=%d [%s], status=%s",
280+
repoCount, enabledRepos.size(), repoUrl, timeTaken, lastUpdated, age, statusString));
282281
}
283282
}
284283
long end = System.currentTimeMillis();

0 commit comments

Comments
 (0)