Add logging for git browse command (#2140)

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2022-10-20 11:38:32 +02:00
committed by GitHub
parent b55f2981fd
commit 976f71b33c

View File

@@ -91,6 +91,7 @@ public class GitCatCommand extends AbstractGitCommand implements CatCommand {
private Loader getLoader(CatCommandRequest request) throws IOException {
org.eclipse.jgit.lib.Repository repo = open();
ObjectId revId = getCommitOrDefault(repo, request.getRevision());
logger.info("loading content for file {} for revision {} in repository {}", request.getPath(), revId, repository);
return getLoader(repo, revId, request.getPath());
}