mirror of https://github.com/hashicorp/consul
Remove excess debug log from ingress upstream shutdown
parent
279d458e6e
commit
016f963e7e
|
@ -149,10 +149,6 @@ func (s *handlerIngressGateway) handleUpdate(ctx context.Context, u UpdateEvent,
|
||||||
for uid, cancelFn := range snap.IngressGateway.WatchedDiscoveryChains {
|
for uid, cancelFn := range snap.IngressGateway.WatchedDiscoveryChains {
|
||||||
if _, ok := watchedSvcs[uid]; !ok {
|
if _, ok := watchedSvcs[uid]; !ok {
|
||||||
for targetID, cancelUpstreamFn := range snap.IngressGateway.WatchedUpstreams[uid] {
|
for targetID, cancelUpstreamFn := range snap.IngressGateway.WatchedUpstreams[uid] {
|
||||||
s.logger.Debug("stopping watch of target",
|
|
||||||
"upstream", uid,
|
|
||||||
"target", targetID,
|
|
||||||
)
|
|
||||||
delete(snap.IngressGateway.WatchedUpstreams[uid], targetID)
|
delete(snap.IngressGateway.WatchedUpstreams[uid], targetID)
|
||||||
delete(snap.IngressGateway.WatchedUpstreamEndpoints[uid], targetID)
|
delete(snap.IngressGateway.WatchedUpstreamEndpoints[uid], targetID)
|
||||||
cancelUpstreamFn()
|
cancelUpstreamFn()
|
||||||
|
|
Loading…
Reference in New Issue