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-21 12:29:37 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-21 14:07:22 +0300
commit199c6104682079f057d9ff8b17e253e75a618e76 (patch)
tree386a81b151d9cbf1aad3ec40997cf91decb62a47 /cmd/gitaly-ssh
parentc4c19957bc6dba3b30c848459c7465cebbdee060 (diff)
log: Remove Print and related functions from `Logger` interface
The function family `Print{,f,ln}()` is merely a wrapper of the respective functions that log a message at info level. Despite being duplicate, it's also not obvious what they are doing and not supported by the `slog` package. Remove these functions from the `Logger` interface and replace all their usages with the respective info-level functions. As the Yamux library expects a logger implementing these functions this commit implements a wrapper that forwards the respective functions.
Diffstat (limited to 'cmd/gitaly-ssh')
-rw-r--r--cmd/gitaly-ssh/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gitaly-ssh/main.go b/cmd/gitaly-ssh/main.go
index b34e99f32..db1518365 100644
--- a/cmd/gitaly-ssh/main.go
+++ b/cmd/gitaly-ssh/main.go
@@ -80,7 +80,7 @@ func main() {
code, err := cmd.run(logger)
if err != nil {
- logger.Printf("%s: %v", command, err)
+ logger.Infof("%s: %v", command, err)
}
os.Exit(code)