Skip to content

Commit

Permalink
0003109: Improved error message when file trigger is configured to us…
Browse files Browse the repository at this point in the history
…e channel with file_sync_flag=0
  • Loading branch information
evan-miller-jumpmind committed Nov 8, 2022
1 parent f81ef1c commit beda37c
Showing 1 changed file with 8 additions and 3 deletions.
Expand Up @@ -97,9 +97,14 @@ public Set<String> routeToNodes(SimpleRouterContext context, DataMetaData dataMe
}
}
} else {
log.error(
"Could not find a trigger router with a trigger_id of {} and a router_id of {}. The file snapshot will not be routed",
triggerId, routerId);
if (context != null && context.getChannel() != null && !context.getChannel().isFileSyncFlag()) {
log.error("One or more file triggers use the '{}' channel, which is not configured for file sync.",
context.getChannel().getChannelId());
} else {
log.error(
"Could not find a trigger router with a trigger_id of {} and a router_id of {}. The file snapshot will not be routed",
triggerId, routerId);
}
}
return nodeIds;
}
Expand Down

0 comments on commit beda37c

Please sign in to comment.