diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-25 10:20:42 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-26 14:12:28 +0300 |
commit | 2bbd7cd2cbae2912b32bc7c5541cdcd81dbacf87 (patch) | |
tree | 698d476e6f1f76428f324c038b982100dfa359e6 /cmd | |
parent | 9612641f50ee5e58f16ceb390eb6fed87c702075 (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.go | 2 |
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) } |