Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-11-05 20:37:32 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-11-05 20:37:32 +0300
commitb6b8575e55e5ad874106c3d99ea8e90bbe32634b (patch)
treec5e91e5c30a01a5a9f054912a2fed1cc26fb20d9
parent805b98249291cb08045df0aa6aa0b40774433995 (diff)
Quiet down grpc logs during go tests
-rw-r--r--internal/testhelper/testhelper.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index 1d470c61a..285de96bf 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -26,6 +26,7 @@ import (
"gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitaly/internal/command"
"gitlab.com/gitlab-org/gitaly/internal/config"
+ gitalylog "gitlab.com/gitlab-org/gitaly/internal/log"
"gitlab.com/gitlab-org/gitaly/internal/storage"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
@@ -45,6 +46,9 @@ func init() {
config.Config.Storages = []config.Storage{
{Name: "default", Path: GitlabTestStoragePath()},
}
+
+ gitalylog.GrpcGo.SetLevel(log.WarnLevel)
+ grpc_logrus.ReplaceGrpcLogger(log.NewEntry(gitalylog.GrpcGo))
}
// MustReadFile returns the content of a file or fails at once.