We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384e5aa commit 949297eCopy full SHA for 949297e
1 file changed
source/common/formatter/substitution_formatter.cc
@@ -1410,9 +1410,21 @@ const StreamInfoFormatter::FieldExtractorLookupTbl& StreamInfoFormatter::getKnow
1410
[](const StreamInfo::StreamInfo& stream_info) {
1411
absl::optional<std::string> result;
1412
std::string route_name = stream_info.getRouteName();
1413
+#if defined(HIGRESS)
1414
if (!route_name.empty()) {
1415
result = route_name;
1416
+ } else {
1417
+ auto route = stream_info.route();
1418
+ if (route && route->routeEntry()) {
1419
+ result = route->routeEntry()->routeName();
1420
+ }
1421
}
1422
+#else
1423
+ if (!route_name.empty()) {
1424
+ result = route_name;
1425
1426
+#endif
1427
+
1428
return result;
1429
});
1430
}}},
0 commit comments