Skip to content

Commit

Permalink
Updated default flow start log message with messageAttributeText
Browse files Browse the repository at this point in the history
  • Loading branch information
Anil Konakalla authored and Anil Konakalla committed Dec 18, 2024
1 parent d9abf51 commit c26f06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void logMessage(ComponentLocation location, Event event, String logMes

protected Map<String, String> getFlowLogAttributes(EnrichedServerNotification notification) {
Map<String, String> value = emptyAttributes;
FlowLogConfig flowLogConfig = config.getFlowLogConfigMap().get(notification.getResourceIdentifier());
FlowLogConfig flowLogConfig;
/**
* Flow name can contain wildcard (*)
* We only look for wildcard either starting of the string or ending of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public void onNotification(PipelineMessageNotification notification) {
String message = "Event not processed yet, this should never be shown";
switch (Integer.parseInt(notification.getAction().getIdentifier())) {
case PipelineMessageNotification.PROCESS_START:
message = "Flow [" + notification.getResourceIdentifier() + "]" + " start " + msgToAppend;
message = "Flow [" + notification.getResourceIdentifier() + "]" + " start "
+ (msgToAppend != null ? msgToAppend : "");
break;
case PipelineMessageNotification.PROCESS_COMPLETE:
message = "Flow [" + notification.getResourceIdentifier() + "]" + " end";
Expand Down

0 comments on commit c26f06b

Please sign in to comment.