diff options
author | 2018-01-24 11:47:57 +0100 | |
---|---|---|
committer | 2018-01-25 15:29:58 +0000 | |
commit | 7ad6c46b3fa55967fa58b39622271c867c0ac203 (patch) | |
tree | 101b1f0c44a6a9d191e17f54f9412aa14962d50f /appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap | |
parent | eec180e689f0243accf0439588c08a29186a2bc2 (diff) |
Fixes in DmaapProducerImpl
Change-Id: Ie11166dd3ce2b9a7aafbd11130129f1550b437ec
Issue-ID: APPC-493
Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap')
-rw-r--r-- | appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java index 888b432b0..5f91ca33b 100644 --- a/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java +++ b/appc-adapters/appc-dmaap-adapter/appc-dmaap-adapter-bundle/src/main/java/org/onap/appc/adapter/messaging/dmaap/impl/DmaapProducerImpl.java @@ -123,7 +123,7 @@ public class DmaapProducerImpl implements Producer { final MRBatchingPublisher client = MRClientFactory.createBatchingPublisher (topicProducerPropFileName); out.add(client); } catch (Exception e) { - e.printStackTrace(); + LOG.error(e.getMessage()); } } @@ -161,7 +161,7 @@ public class DmaapProducerImpl implements Producer { LOG.debug(String.format("Posting %s to %s", data, client)); client.send(partition, data); } catch (IOException e) { - e.printStackTrace(); + LOG.error(e.getMessage()); success = false; } } @@ -186,7 +186,6 @@ public class DmaapProducerImpl implements Producer { client.close(1, TimeUnit.SECONDS); } catch (IOException | InterruptedException e) { LOG.warn(String.format("Failed to cleanly close Dmaap connection for [%s]", client)); - e.printStackTrace(); } } } |