diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-22 12:31:10 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-31 09:27:26 +0300 |
commit | 190de6ae935b0bafdc079d4e25ac1d8917141069 (patch) | |
tree | 588bd3fc57c2300fc0db9121c63ea66e79b53577 /cmd/gitaly-ssh | |
parent | d64a96f54f431120a3d69a7b42f3ddfafb8ecfbb (diff) |
Replace discarding logger with new recording logger
Gitaly now has a new logger for tests which outputs the logs on test
failure only. Replace all usage of discarding logger with it to capture
logs instead of discarding them.
NewDiscardingLogger is unexported as it is no longer used except
for newServerLogger.
Diffstat (limited to 'cmd/gitaly-ssh')
-rw-r--r-- | cmd/gitaly-ssh/main_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gitaly-ssh/main_test.go b/cmd/gitaly-ssh/main_test.go index a3bfc1078..9545205aa 100644 --- a/cmd/gitaly-ssh/main_test.go +++ b/cmd/gitaly-ssh/main_test.go @@ -103,7 +103,7 @@ func TestRun(t *testing.T) { payload: "{}", } - gotCode, err := cmd.run(testhelper.NewDiscardingLogger(t)) + gotCode, err := cmd.run(testhelper.NewLogger(t)) if tt.wantErr { assert.Error(t, err) } else { |