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-09-25 10:20:42 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-26 14:12:28 +0300
commit2bbd7cd2cbae2912b32bc7c5541cdcd81dbacf87 (patch)
tree698d476e6f1f76428f324c038b982100dfa359e6 /cmd
parent9612641f50ee5e58f16ceb390eb6fed87c702075 (diff)
log: Drop `Infof()` function from `Logger` interface
Remove the `Infof()` function from the `Logger` interface. Please refer to the preceding commit that removes `Debugf()` for the motivation behind this change.
Diffstat (limited to 'cmd')
-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 4b4138abb..9f87a20a0 100644
--- a/cmd/gitaly-ssh/main.go
+++ b/cmd/gitaly-ssh/main.go
@@ -82,7 +82,7 @@ func main() {
code, err := cmd.run(logger)
if err != nil {
- logger.Infof("%s: %v", command, err)
+ logger.WithField("command", command).WithError(err).Info("command returned error")
os.Exit(1)
}