make logs quieter 48/111148/3
authorKevin Smokowski <kevin.smokowski@att.com>
Wed, 12 Aug 2020 13:53:04 +0000 (13:53 +0000)
committerKevin Smokowski <kevin.smokowski@att.com>
Wed, 12 Aug 2020 14:02:24 +0000 (14:02 +0000)
make logs quieter

Issue-ID: CCSDK-2645
Change-Id: I6fa80d511d27a334c2481b65ffb7ff2985c62df2
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
template-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/template/TemplateNode.java

index 5ca2ca8..04f53c8 100755 (executable)
@@ -122,7 +122,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
             loadPartners(partners);
             log.info("Partners support enabled");
         } catch (Exception e) {
-            log.warn("Partners file could not be read, Partner support will not be enabled.", e);
+            log.warn("Partners file could not be read, Partner support will not be enabled. " + e.getMessage());
         }
 
         try (FileInputStream in = new FileInputStream(configDir + "/" + UEB_PROPERTIES_FILE_NAME)) {
@@ -131,7 +131,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
             uebServers = props.getProperty("servers");
             log.info("UEB support enabled");
         } catch (Exception e) {
-            log.warn("UEB properties could not be read, UEB support will not be enabled.", e);
+            log.warn("UEB properties could not be read, UEB support will not be enabled. " + e.getMessage());
         }
         httpConnectTimeout = readOptionalInteger("HTTP_CONNECT_TIMEOUT_MS",DEFAULT_HTTP_CONNECT_TIMEOUT_MS);
         httpReadTimeout = readOptionalInteger("HTTP_READ_TIMEOUT_MS",DEFAULT_HTTP_READ_TIMEOUT_MS);
index a36d1a5..005b620 100755 (executable)
@@ -62,7 +62,7 @@ public class TemplateNode implements SvcLogicJavaPlugin {
         try (FileInputStream in = new FileInputStream(configDir + "/" + TEMPLATE_PROPERTIES_FILE_NAME)) {
             props.load(in);
         } catch (Exception e) {
-            logger.warn("Properties not loaded for template node, using sensible defaults", e);
+            logger.warn("Properties not loaded for template node, using sensible defaults. " + e.getMessage());
         }
 
         // give sensible defaults for required properties