diff options
Diffstat (limited to 'internal/command/uploadpack/gitalycall.go')
-rw-r--r-- | internal/command/uploadpack/gitalycall.go | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/internal/command/uploadpack/gitalycall.go b/internal/command/uploadpack/gitalycall.go index a9a05e4..8ab163d 100644 --- a/internal/command/uploadpack/gitalycall.go +++ b/internal/command/uploadpack/gitalycall.go @@ -6,10 +6,10 @@ import ( "google.golang.org/grpc" - log "github.com/sirupsen/logrus" "gitlab.com/gitlab-org/gitaly/client" pb "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb" "gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs" + "gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/commandlogger" "gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier" "gitlab.com/gitlab-org/gitlab-shell/internal/handler" ) @@ -29,16 +29,7 @@ func (c *Command) performGitalyCall(response *accessverifier.Response) error { GitConfigOptions: response.GitConfigOptions, } - fields := log.Fields{ - "command": "git-upload-pack", - "glProjectPath": request.Repository.GlProjectPath, - "glRepository": request.Repository.GlRepository, - "userId": response.UserId, - "userName": response.Username, - "gitProtocol": request.GitProtocol, - } - - log.WithFields(fields).Info("executing git command") + commandlogger.Log("git-upload-pack", request.Repository, response, request.GitProtocol) return gc.RunGitalyCommand(func(ctx context.Context, conn *grpc.ClientConn) (int32, error) { ctx, cancel := context.WithCancel(ctx) |