Skip to content

Commit 18a4eac

Browse files
authored
testutils: add couple of log statements to the restartable listener type (#7716)
1 parent fdc2ec2 commit 18a4eac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: internal/testutils/restartable_listener.go

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func (l *RestartableListener) Addr() net.Addr {
8181
// Stop closes existing connections on the listener and prevents new connections
8282
// from being accepted.
8383
func (l *RestartableListener) Stop() {
84+
logger.Infof("Stopping restartable listener %q", l.Addr())
85+
8486
l.mu.Lock()
8587
l.stopped = true
8688
for _, conn := range l.conns {
@@ -92,6 +94,8 @@ func (l *RestartableListener) Stop() {
9294

9395
// Restart gets a previously stopped listener to start accepting connections.
9496
func (l *RestartableListener) Restart() {
97+
logger.Infof("Restarting listener %q", l.Addr())
98+
9599
l.mu.Lock()
96100
l.stopped = false
97101
l.mu.Unlock()

0 commit comments

Comments
 (0)