improve logging of git changesetviewer

This commit is contained in:
Sebastian Sdorra
2011-11-15 21:37:02 +01:00
parent e55370b339
commit 90c232a17e

View File

@@ -93,6 +93,11 @@ public class GitChangesetViewer implements ChangesetViewer
@Override
public ChangesetPagingResult getChangesets(int start, int max)
{
if (logger.isDebugEnabled())
{
logger.debug("fetch changesets. start: {}, max: {}", start, max);
}
ChangesetPagingResult changesets = null;
File directory = handler.getDirectory(repository);
org.eclipse.jgit.lib.Repository gr = null;
@@ -165,6 +170,14 @@ public class GitChangesetViewer implements ChangesetViewer
public ChangesetPagingResult getChangesets(String path, String revision,
int start, int max)
{
if (logger.isDebugEnabled())
{
logger.debug(
"fetch changesets for path {} and revision {}. start: {}, max: {}",
new Object[] { path,
revision, start, max });
}
ChangesetPagingResult changesets = null;
File directory = handler.getDirectory(repository);
org.eclipse.jgit.lib.Repository gr = null;