Skip to content

Commit 02e47bd

Browse files
Check action link type when logging route not found (#115)
* Check action link type when logging route not found * Sonar fix
1 parent 613dc1f commit 02e47bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

BtmsGateway/Middleware/RoutingInterceptor.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,13 @@ private void LogRouteNotFoundResults(MessageData messageData, RoutingResult rout
137137
messageData.ContentMap.CorrelationId,
138138
messageData.ContentMap.MessageReference,
139139
action,
140-
routingResult.RouteLinkType == LinkType.None ? "configured" : "supported",
140+
GetReason(action == RouteAction ? routingResult.RouteLinkType : routingResult.ForkLinkType),
141141
messageData.HttpString
142142
);
143143
}
144+
145+
private static string GetReason(LinkType linkType)
146+
{
147+
return linkType == LinkType.None ? "configured" : "supported";
148+
}
144149
}

0 commit comments

Comments
 (0)