aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmettCox <emmett.cox@est.tech>2019-04-09 09:18:42 +0000
committerEmmettCox <emmett.cox@est.tech>2019-04-09 09:18:42 +0000
commit0155643bfd2e38ca3a557faca9bdb282331c6590 (patch)
tree75bd2f022931f2a5e2ba71dec30bcab79ba05ef1
parentb60213dc26540543f500b3442b061565907c3cf8 (diff)
logging under one system updates
Change-Id: I73afa3b104c0c31e5ba72face7d547b4eb996787 Issue-ID: DMAAP-1050 Signed-off-by: EmmettCox <emmett.cox@est.tech>
-rw-r--r--datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java2
-rw-r--r--datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
index feee19c1..16099e62 100644
--- a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
+++ b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
@@ -298,7 +298,7 @@ public class NodeConfigManager implements DeliveryQueueHelper {
* seconds), wait a while before fetching again.
*/
public synchronized void gofetch(String remoteAddr) {
- if (provcheck.isFrom(remoteAddr)) {
+ if (provcheck.isReachable(remoteAddr)) {
eelfLogger.info("NODE0307 Received configuration fetch request from provisioning server " + remoteAddr);
pfetcher.request();
} else {
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java
index af2085bc..76a983f8 100644
--- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java
+++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/PublishServlet.java
@@ -162,7 +162,7 @@ public class PublishServlet extends BaseServlet {
String message = "Redirected to: " + newurl;
elr.setMessage(message);
elr.setResult(HttpServletResponse.SC_MOVED_PERMANENTLY);
- eventlogger.error(elr.toString());
+ eventlogger.info(elr.toString());
resp.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
resp.setHeader("Location", newurl);