Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsh: remove noisy debug log #50037

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/client/client_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ func (s *Store) GetKeyRing(idx KeyRingIndex, opts ...CertOption) (*KeyRing, erro
return nil, trace.Wrap(err)
}

tlsCertExpiration, err := keyRing.TeleportTLSCertValidBefore()
// verify that the key ring has a TLS certificate
_, err = keyRing.TeleportTLSCertValidBefore()
if err != nil {
return nil, trace.Wrap(err)
}
s.log.Debugf("Teleport TLS certificate valid until %q.", tlsCertExpiration)

// Validate the SSH certificate.
if keyRing.Cert != nil {
Expand Down
6 changes: 3 additions & 3 deletions tool/tsh/common/tsh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5871,11 +5871,11 @@ func TestLogout(t *testing.T) {
err = Run(context.Background(), []string{"logout"}, setHomePath(tmpHomePath))
require.NoError(t, err, trace.DebugReport(err))

// direcory should be empty.
// directory should be empty.
f, err := os.Open(tmpHomePath)
require.NoError(t, err)
_, err = f.Readdir(1)
require.ErrorIs(t, err, io.EOF)
entries, err := f.ReadDir(1)
require.ErrorIs(t, err, io.EOF, "expected empty directory, but found %v", entries)
})
}
}
Expand Down
Loading