Skip to content

Commit

Permalink
udp: Add some log when session is deleted (envoyproxy#12669)
Browse files Browse the repository at this point in the history
It is very helpful for debugging.

Signed-off-by: DongRyeol Cha <dr83.cha@samsung.com>
  • Loading branch information
DongRyeol Cha authored Aug 16, 2020
1 parent 8c1ad4c commit 51551ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/extensions/filters/udp/udp_proxy/udp_proxy_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ UdpProxyFilter::ActiveSession::ActiveSession(ClusterInfo& cluster,
}

UdpProxyFilter::ActiveSession::~ActiveSession() {
ENVOY_LOG(debug, "deleting the session: downstream={} local={} upstream={}",
addresses_.peer_->asStringView(), addresses_.local_->asStringView(),
host_->address()->asStringView());
cluster_.filter_.config_->stats().downstream_sess_active_.dec();
cluster_.cluster_.info()
->resourceManager(Upstream::ResourcePriority::Default)
Expand Down

0 comments on commit 51551ae

Please sign in to comment.