diff --git a/src/main/java/com/epam/ta/reportportal/core/configs/event/subscriber/EventSubscriberConfig.java b/src/main/java/com/epam/ta/reportportal/core/configs/event/subscriber/EventSubscriberConfig.java index d7a5776e08..28aac8517d 100644 --- a/src/main/java/com/epam/ta/reportportal/core/configs/event/subscriber/EventSubscriberConfig.java +++ b/src/main/java/com/epam/ta/reportportal/core/configs/event/subscriber/EventSubscriberConfig.java @@ -49,10 +49,10 @@ public ProjectConfigDelegatingSubscriber launchFinishedDele LaunchPatternAnalysisRunner patternAnalysisEventHandler, LaunchNotificationRunner notificationEventHandler) { return new ProjectConfigDelegatingSubscriber<>(projectConfigProvider, - List.of(autoAnalysisEventHandler, + List.of(patternAnalysisEventHandler, + autoAnalysisEventHandler, uniqueErrorAnalysisEventHandler, launchAnalysisFinishEventPublisher, - patternAnalysisEventHandler, notificationEventHandler ) ); diff --git a/src/main/java/com/epam/ta/reportportal/core/events/subscriber/impl/delegate/ProjectConfigDelegatingSubscriber.java b/src/main/java/com/epam/ta/reportportal/core/events/subscriber/impl/delegate/ProjectConfigDelegatingSubscriber.java index ef9d5044eb..fdcdb96871 100644 --- a/src/main/java/com/epam/ta/reportportal/core/events/subscriber/impl/delegate/ProjectConfigDelegatingSubscriber.java +++ b/src/main/java/com/epam/ta/reportportal/core/events/subscriber/impl/delegate/ProjectConfigDelegatingSubscriber.java @@ -20,8 +20,11 @@ import com.epam.ta.reportportal.core.events.handler.ConfigurableEventHandler; import com.epam.ta.reportportal.core.events.subscriber.EventSubscriber; import com.epam.ta.reportportal.core.project.config.ProjectConfigProvider; +import com.epam.ta.reportportal.ws.converter.resource.handler.attribute.launch.LaunchResourceAttributeLogger; import java.util.List; import java.util.Map; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author Ivan Budayeu @@ -29,6 +32,8 @@ public class ProjectConfigDelegatingSubscriber implements EventSubscriber { + private static final Logger LOGGER = LoggerFactory.getLogger(ProjectConfigDelegatingSubscriber.class); + private final ProjectConfigProvider projectConfigProvider; private final List>> eventHandlers; @@ -41,6 +46,12 @@ public ProjectConfigDelegatingSubscriber(ProjectConfigProvider projectConfigProv @Override public void handleEvent(T event) { final Map projectConfig = projectConfigProvider.provide(event.getProjectId()); - eventHandlers.forEach(h -> h.handle(event, projectConfig)); + eventHandlers.forEach(h -> { + try { + h.handle(event, projectConfig); + } catch (Exception e) { + LOGGER.debug("Error while processing event: " + e.getMessage()); + } + }); } }