We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc2ec2 commit 18a4eacCopy full SHA for 18a4eac
internal/testutils/restartable_listener.go
@@ -81,6 +81,8 @@ func (l *RestartableListener) Addr() net.Addr {
81
// Stop closes existing connections on the listener and prevents new connections
82
// from being accepted.
83
func (l *RestartableListener) Stop() {
84
+ logger.Infof("Stopping restartable listener %q", l.Addr())
85
+
86
l.mu.Lock()
87
l.stopped = true
88
for _, conn := range l.conns {
@@ -92,6 +94,8 @@ func (l *RestartableListener) Stop() {
92
94
93
95
// Restart gets a previously stopped listener to start accepting connections.
96
func (l *RestartableListener) Restart() {
97
+ logger.Infof("Restarting listener %q", l.Addr())
98
99
100
l.stopped = false
101
l.mu.Unlock()
0 commit comments