Commit c2a605b7 authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

repositoryService: logging requests with the wrapper class

parent 1b18357608d5
Pipeline #22393 passed with stages
in 1 minute and 9 seconds
......@@ -57,6 +57,7 @@ from ..path import (
InvalidPath,
validate_relative_path,
)
from .. import message
logger = logging.getLogger(__name__)
......@@ -76,7 +77,7 @@ class RepositoryServiceServicer(RepositoryServiceServicer, HGitalyServicer):
def FindMergeBase(self,
request: FindMergeBaseRequest,
context) -> FindMergeBaseResponse:
logger.debug("FindMergeBase request=%r", request)
logger.debug("FindMergeBase request=%r", message.Logging(request))
repo = self.load_repo(request.repository, context)
if len(request.revisions) < 2:
# require at least 2 revisions
......@@ -119,7 +120,7 @@ class RepositoryServiceServicer(RepositoryServiceServicer, HGitalyServicer):
def GetArchive(self,
request: GetArchiveRequest,
context) -> GetArchiveResponse:
logger.debug("GetArchive request=%r", request)
logger.debug("GetArchive request=%r", message.Logging(request))
repo = self.load_repo(request.repository, context)
ctx = repo[request.commit_id]
......
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