diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-11-05 20:37:32 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-11-05 20:37:32 +0300 |
commit | b6b8575e55e5ad874106c3d99ea8e90bbe32634b (patch) | |
tree | c5e91e5c30a01a5a9f054912a2fed1cc26fb20d9 | |
parent | 805b98249291cb08045df0aa6aa0b40774433995 (diff) |
Quiet down grpc logs during go tests
-rw-r--r-- | internal/testhelper/testhelper.go | 4 |
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. |