diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-25 13:20:29 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-10-10 10:14:08 +0300 |
commit | f814024e362b510f1c37d10188227d0ea900533c (patch) | |
tree | d43efa207f44ce637bdb8d72422bd15dc8e983d9 /internal/testhelper/testserver/gitaly.go | |
parent | 77fb7fddbdba1a2ba784f4b9933b4380c2de35b6 (diff) |
transaction: Replace use of ctxlogrus with injected logger
The ctxlogrus package is going away with the replacement being log
fields extracted from the context via `log.DebugContext()` et al.
Refactor the code to stop using ctxlogrus by injecting a logger and
using the new context-based logging methods.
Diffstat (limited to 'internal/testhelper/testserver/gitaly.go')
-rw-r--r-- | internal/testhelper/testserver/gitaly.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testhelper/testserver/gitaly.go b/internal/testhelper/testserver/gitaly.go index 504705512..3632a9943 100644 --- a/internal/testhelper/testserver/gitaly.go +++ b/internal/testhelper/testserver/gitaly.go @@ -296,7 +296,7 @@ func (gsd *gitalyServerDeps) createDependencies(tb testing.TB, cfg config.Cfg) * } if gsd.txMgr == nil { - gsd.txMgr = transaction.NewManager(cfg, gsd.backchannelReg) + gsd.txMgr = transaction.NewManager(cfg, gsd.logger, gsd.backchannelReg) } if gsd.gitCmdFactory == nil { |