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-25 13:20:29 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-10-05 13:21:22 +0300
commit132727054bf5ed52b82c11189efc3a3e3ae9a74e (patch)
tree22250f7c90da0dd15a93e45b6fec154ea57dc342 /internal/cli
parent49b9bc0a11fccc5092f1bb7221903838b0b9cfe4 (diff)
updateref: 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/cli')
-rw-r--r--internal/cli/gitaly/serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cli/gitaly/serve.go b/internal/cli/gitaly/serve.go
index 165bc0eaa..fb6f7cdf3 100644
--- a/internal/cli/gitaly/serve.go
+++ b/internal/cli/gitaly/serve.go
@@ -375,7 +375,7 @@ func run(cfg config.Cfg, logger log.Logger) error {
)
defer gitalyServerFactory.Stop()
- updaterWithHooks := updateref.NewUpdaterWithHooks(cfg, locator, hookManager, gitCmdFactory, catfileCache)
+ updaterWithHooks := updateref.NewUpdaterWithHooks(cfg, logger, locator, hookManager, gitCmdFactory, catfileCache)
streamCache := streamcache.New(cfg.PackObjectsCache, logger)