lib/relay, lib/svcutil: Improve service logging (fixes #7580) (#7647)

This commit is contained in:
Simon Frei
2021-05-10 22:26:25 +02:00
committed by GitHub
parent 713527facf
commit c7f4f15272
3 changed files with 43 additions and 11 deletions
+2 -1
View File
@@ -93,7 +93,8 @@ func (c *dynamicClient) serve(ctx context.Context) error {
c.client = client
c.mut.Unlock()
c.client.Serve(ctx)
err = c.client.Serve(ctx)
l.Debugf("Disconnected from %s://%s: %v", c.client.URI().Scheme, c.client.URI().Host, err)
c.mut.Lock()
c.client = nil