diff options
author | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-03-19 09:24:44 +0000 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-03-20 01:36:19 +0000 |
commit | 6e87544710647d9d1e55f3e8a72fe361d244e8b7 (patch) | |
tree | 607507d8d06d59dacbd45cee0961e9afaf090d36 | |
parent | 9f4304d6085d3cc9a2a242cdbd6a33c10cc91097 (diff) |
Suppression of long logs in GraphExecutor
Logging full configuration files to info log was causing
failures and timeouts on configuration operations in APPC.
Some were removed already under this JIRA but this one was missed.
Issue-ID: APPC-1489
Change-Id: I619f2d1140095859092d6ceff6c7cb44855fb2e1
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
-rw-r--r-- | appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/executorImpl/GraphExecutor.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/executorImpl/GraphExecutor.java b/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/executorImpl/GraphExecutor.java index 10fc319a2..b70e36ede 100644 --- a/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/executorImpl/GraphExecutor.java +++ b/appc-config/appc-flow-controller/provider/src/main/java/org/onap/appc/flow/controller/executorImpl/GraphExecutor.java @@ -92,7 +92,19 @@ public class GraphExecutor implements FlowExecutorInterface { String parmName = (String) key; String parmValue = ctx.getAttribute(parmName); parms.put(parmName, parmValue); - log.info(fn + "Setting Key= " + parmName + " and Value = " + parmValue); + if (log.isTraceEnabled()) { + log.trace(fn + "Setting Key= " + parmName + " and Value = " + parmValue); + } + else { + if (parmValue.length() > 255) { + log.info(fn + "Setting Key= " + parmName + " and Value = " + parmValue.substring(0, 255)); + log.info("\n...\n" + parmValue.length() + + " characters in property, turn on TRACE logging to log entire parameter value"); + } + else { + log.info(fn + "Setting Key= " + parmName + " and Value = " + parmValue); + } + } } Properties returnParams = |