Skip to content

Commit 2bebee5

Browse files
committed
Adjusted logging based on feedback
1 parent d3d3cd2 commit 2bebee5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Frontend/src/components/messages2/FlowDiagram/FlowDiagram.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,21 @@ function constructEdges(nodes: Node<NodeData>[]): DefaultEdge[] {
150150
});
151151
152152
if (parentMessages.length === 0) {
153-
console.log(`Fall back to match only on RelatedToMessageId for message with Id '${message.message_id}' matched but link could be invalid.`);
153+
console.debug(`Fall back to match only on RelatedToMessageId for message with Id '${message.message_id}' matched but link could be invalid.`);
154154
}
155155
}
156156
157157
switch (parentMessages.length) {
158158
case 0:
159-
console.log(
159+
console.warn(
160160
`No parent could be resolved for the message with Id '${message.message_id}' which has RelatedToMessageId set. This can happen if the parent has been purged due to retention expiration, an ServiceControl node to be unavailable, or because the parent message not been stored (yet).`
161161
);
162162
break;
163163
case 1:
164164
// Log nothing, this is what it should be
165165
break;
166166
default:
167-
console.log(`Multiple parents matched for message id '${message.message_id}' possibly due to more-than-once processing, linking to all as it is unknown which processing attempt generated the message.`);
167+
console.warn(`Multiple parents matched for message id '${message.message_id}' possibly due to more-than-once processing, linking to all as it is unknown which processing attempt generated the message.`);
168168
break;
169169
}
170170

0 commit comments

Comments
 (0)