From 8a220827f2ce1ab553a110c64c155486d8567c05 Mon Sep 17 00:00:00 2001 From: Kevin Baichoo Date: Fri, 1 Mar 2024 14:07:04 -0500 Subject: [PATCH] ENVOY_BUG include filter name. OTherwise it is not clear which filter triggered the bug. Signed-off-by: Kevin Baichoo --- source/common/http/filter_manager.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/common/http/filter_manager.cc b/source/common/http/filter_manager.cc index 15c854b14daf2..187bb7b585616 100644 --- a/source/common/http/filter_manager.cc +++ b/source/common/http/filter_manager.cc @@ -604,7 +604,9 @@ void FilterManager::decodeHeaders(ActiveStreamDecoderFilter* filter, RequestHead const auto continue_iteration = (*entry)->commonHandleAfterHeadersCallback(status, end_stream); ENVOY_BUG(!continue_iteration || !state_.local_complete_, - "Filter did not return StopAll or StopIteration after sending a local reply."); + fmt::format( + "filter={} did not return StopAll or StopIteration after sending a local reply.", + (*entry)->filter_context_.config_name)); // If this filter ended the stream, decodeComplete() should be called for it. if ((*entry)->end_stream_) {