mirror of https://github.com/apache/nifi.git
NIFI-2007:
- Restoring bulletin functionality. - Ensuring appropriate merging of bulletins in clustered responses. - Updated the phrasing for cluster-related bulletins This closes #531.
This commit is contained in:
parent
0b437e09a7
commit
2c69c25323
|
@ -278,12 +278,12 @@ public class NodeClusterCoordinator implements ClusterCoordinator, ProtocolHandl
|
|||
|
||||
@Override
|
||||
public void reportEvent(final NodeIdentifier nodeId, final Severity severity, final String event) {
|
||||
eventReporter.reportEvent(severity, nodeId == null ? EVENT_CATEGORY : nodeId.toString(), event);
|
||||
eventReporter.reportEvent(severity, EVENT_CATEGORY, "Event Reported for " + nodeId.toString() + " -- " + event);
|
||||
if (nodeId != null) {
|
||||
addNodeEvent(nodeId, severity, event);
|
||||
}
|
||||
|
||||
final String message = nodeId == null ? event : "Event Reported for " + nodeId + ": " + event;
|
||||
final String message = nodeId == null ? event : "Event Reported for " + nodeId + " -- " + event;
|
||||
switch (severity) {
|
||||
case ERROR:
|
||||
logger.error(message);
|
||||
|
|
Loading…
Reference in New Issue