diff options
author | Piotr Wielebski <piotr.wielebski@nokia.com> | 2019-06-10 08:54:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-10 08:54:47 +0000 |
commit | 574a2a8e300195f1693b025cc71281934ea677f3 (patch) | |
tree | 19098905f89d32134895926e437c583014ebbc37 /prh-app-server | |
parent | 1ec97f5a0f3585cb2709cab0bebd571cd4bc9e9e (diff) | |
parent | c00bb15ad7c2741bd4d87506f2e3e4d455e01514 (diff) |
Merge "fix logging"
Diffstat (limited to 'prh-app-server')
-rw-r--r-- | prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java index 5d438e37..670d2140 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/ScheduledTasks.java @@ -113,15 +113,8 @@ public class ScheduledTasks { ) .flatMap(this::queryAaiForConfiguration) .flatMap(this::publishToAaiConfiguration) - .doOnError(exception -> - LOGGER.warn("AAIProducerTask exception has been registered: ", exception)) - .onErrorResume(resumePrhPredicate(), exception -> Mono.empty()) .flatMap(this::processAdditionalFields) - .doOnError(exception -> - LOGGER.warn("BBSActionsTask exception has been registered: ", exception)) .flatMap(this::publishToDmaapConfiguration) - .doOnError(exception -> - LOGGER.warn("DMaaPProducerTask exception has been registered: ", exception)) .onErrorResume(resumePrhPredicate(), exception -> Mono.empty()) .doOnTerminate(mainCountDownLatch::countDown) .subscribe(this::onSuccess, this::onError, this::onComplete); @@ -175,6 +168,7 @@ public class ScheduledTasks { .execute(state.dmaapModel) .map(x -> state); } catch (PrhTaskException | SSLException e) { + LOGGER.warn("AAIProducerTask exception has been registered: ", e); return Mono.error(e); } } @@ -182,23 +176,20 @@ public class ScheduledTasks { private Mono<State> processAdditionalFields(final State state) { if (state.activationStatus) { LOGGER.debug("Re-registration - Logical links won't be updated."); - return Mono.just(state); } - return bbsActionsTask.execute(state.dmaapModel).map(x -> state); } - private Flux<MessageRouterPublishResponse> - publishToDmaapConfiguration(final State state) { + private Flux<MessageRouterPublishResponse> publishToDmaapConfiguration(final State state) { try { if (state.activationStatus) { LOGGER.debug("Re-registration - Using PNF_UPDATE DMaaP topic."); return dmaapUpdateProducerTask.execute(state.dmaapModel); } - return dmaapReadyProducerTask.execute(state.dmaapModel); } catch (PrhTaskException e) { + LOGGER.warn("DMaaPProducerTask exception has been registered: ", e); return Flux.error(e); } } |