Commit 40ad2d3b authored by Georges Racinet on mutations.racinet.fr's avatar Georges Racinet on mutations.racinet.fr
Browse files

CommitService: more use of full request logging

parent 425363a328f7
......@@ -412,6 +412,7 @@
def FindCommit(self,
request: FindCommitRequest, context) -> FindCommitResponse:
logger.debug("Request %r", message.Logging(request))
repo = self.load_repo(request.repository, context)
revision = request.revision
logger.debug("FindCommit revision=%r", revision)
......@@ -428,6 +429,7 @@
def FindAllCommits(self, request: FindAllCommitsRequest,
context) -> FindAllCommitsResponse:
logger.debug("Request %r", message.Logging(request))
repo = self.load_repo(request.repository, context)
revision = request.revision
opts = {}
......@@ -471,6 +473,8 @@
def FindCommits(self, request: FindCommitsRequest,
context) -> FindCommitsResponse:
req_log = message.Logging(request)
logger.debug("Request %r", req_log)
if request.limit == 0:
return
......@@ -484,8 +488,7 @@
if request.revision and not opts[b'rev'][0]:
logger.debug(
"FindCommits revision %r could not be found",
request.revision)
"Request %r, revision could not be found", req_log)
return FindCommitsResponse()
if util.versiontuple(n=2) <= (5, 5): # hg<=5.5
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment