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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-02-10 13:31:13 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-02-10 13:32:56 +0300
commit86b162d10cca224e995f10bcd7e3cbbe95eb0776 (patch)
treea76e943af04dc4d60d16b6b3db16adfbfcc92fb4 /internal/testhelper/testserver.go
parent99e3e5b41c8441308f18200dbef2a064add26a0b (diff)
testhelper: Decrease logging verbosity for Praefect
When running our test suite with Praefect proxying enabled, then we start a separate Praefect server whenever we set up a Gitaly test server. This Praefect instance is configured with a default log level, which is "info", and as a result the tests become extremely verbose. Fix this by explicitly passing a logging configuration to the Praefect server.
Diffstat (limited to 'internal/testhelper/testserver.go')
-rw-r--r--internal/testhelper/testserver.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/testhelper/testserver.go b/internal/testhelper/testserver.go
index 3d80a3ffa..45c9f1b61 100644
--- a/internal/testhelper/testserver.go
+++ b/internal/testhelper/testserver.go
@@ -29,6 +29,7 @@ import (
gitalyauth "gitlab.com/gitlab-org/gitaly/auth"
"gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/internal/gitaly/config/auth"
+ gitalylog "gitlab.com/gitlab-org/gitaly/internal/gitaly/config/log"
serverauth "gitlab.com/gitlab-org/gitaly/internal/gitaly/server/auth"
"gitlab.com/gitlab-org/gitaly/internal/helper/fieldextractors"
praefectconfig "gitlab.com/gitlab-org/gitaly/internal/praefect/config"
@@ -156,6 +157,10 @@ func (p *TestServer) Start(t testing.TB) {
MonitorInterval: config.Duration(time.Second),
},
Replication: praefectconfig.DefaultReplicationConfig(),
+ Logging: gitalylog.Config{
+ Format: "json",
+ Level: "panic",
+ },
}
for _, storage := range p.storages {