Skip to content

Capitalize first letter in done logs for easier grepping #3769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public synchronized List<String> getBoundaryChangesetIDs(String sinceRevision) t
Collections.reverse(result);

stat.report(LOGGER, Level.FINE,
String.format("done getting boundary changesets for ''%s'' (%d entries)",
String.format("Done getting boundary changesets for ''%s'' (%d entries)",
repository.getDirectoryName(), result.size()));

return List.copyOf(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ public void invalidateRepositories(Collection<? extends RepositoryInfo> repos, C
clear();
newrepos.forEach((_key, repo) -> putRepository(repo));

elapsed.report(LOGGER, String.format("done invalidating %d repositories", newrepos.size()),
elapsed.report(LOGGER, String.format("Done invalidating %d repositories", newrepos.size()),
"history.repositories.invalidate");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ public static void writeConfigToFile(RuntimeEnvironment env, String filename) th
if (filename != null) {
LOGGER.log(Level.INFO, "Writing configuration to {0}", filename);
env.writeConfiguration(new File(filename));
LOGGER.info("Done...");
LOGGER.log(Level.INFO, "Done writing configuration to {0}", filename);
}
}

Expand Down Expand Up @@ -1042,14 +1042,14 @@ public void prepareIndexer(RuntimeEnvironment env,
if (createHistoryCache) {
// Even if history is disabled globally, it can be enabled for some repositories.
if (repositories != null && !repositories.isEmpty()) {
LOGGER.log(Level.INFO, "Generating history cache for repositories: " +
LOGGER.log(Level.INFO, "Generating history cache for repositories: {0}",
String.join(",", repositories));
HistoryGuru.getInstance().createCache(repositories);
} else {
LOGGER.log(Level.INFO, "Generating history cache for all repositories ...");
HistoryGuru.getInstance().createCache();
}
LOGGER.info("Done...");
LOGGER.info("Done generating history cache");
}

if (createDict) {
Expand Down
2 changes: 1 addition & 1 deletion tools/src/main/python/opengrok_tools/utils/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def close(self):

self.logger.debug("Waiting for process with PID {}".format(p.pid))
p.wait()
self.logger.debug("done waiting")
self.logger.debug("Done waiting")

if self.timeout:
e = timeout_thread.get_exception()
Expand Down