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>2023-09-19 11:20:26 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-29 08:53:03 +0300
commit45dbb586adb28dd3f237a1d3d9b2545e387c6864 (patch)
tree7e5e947c7893ba0f3feb084e5e9c008028094a23 /internal/testhelper/testserver/gitaly.go
parent8e9a11bede2d946964dc9a58c5e28952dc78ea86 (diff)
global: Inject logger into service servers
Many callsites extract the logger via the passed-in context by using the `ctxlogrus` package. The ability to add loggers to the context via this package is going away upstream though in favor of a new set of logging functions that accept a context as input parameter themselves. We're thus going to introduce an equivalent interface, but that will require our service servers to have a logger available to them. Prepare for this change by injecting the logger into both Gitaly and Praefect servers.
Diffstat (limited to 'internal/testhelper/testserver/gitaly.go')
-rw-r--r--internal/testhelper/testserver/gitaly.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/testhelper/testserver/gitaly.go b/internal/testhelper/testserver/gitaly.go
index e7b2659e7..7b7d0001d 100644
--- a/internal/testhelper/testserver/gitaly.go
+++ b/internal/testhelper/testserver/gitaly.go
@@ -367,6 +367,7 @@ func (gsd *gitalyServerDeps) createDependencies(tb testing.TB, cfg config.Cfg) *
}
return &service.Dependencies{
+ Logger: gsd.logger,
Cfg: cfg,
ClientPool: gsd.conns,
StorageLocator: gsd.locator,