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
path: root/cmd
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-08-21 14:05:55 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-08-21 14:47:48 +0300
commitc9645cfd3307df247709458943d6ac1ef6196077 (patch)
tree9221e7c574ce49d15d79ecf123b3cebc1a2725b1 /cmd
parent3c79c64beacaacc75b55861c4d317732ae367fc1 (diff)
gitaly-blackbox: Use injected logging instance
We're using the global logging instance provided by `log.Default()`, which is about to go away soon. Refactor the code to instead pass in a proprely configured logging instance.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gitaly-blackbox/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gitaly-blackbox/main.go b/cmd/gitaly-blackbox/main.go
index d9d604e0b..a0a520af3 100644
--- a/cmd/gitaly-blackbox/main.go
+++ b/cmd/gitaly-blackbox/main.go
@@ -46,7 +46,7 @@ func main() {
os.Exit(1)
}
- bb := blackbox.New(cfg)
+ bb := blackbox.New(cfg, logger)
prometheus.MustRegister(bb)
if err := bb.Run(); err != nil {