From 59700d14ff998413dada0cb2e0864e643edbb77e Mon Sep 17 00:00:00 2001 From: Witold Ficio Kopel Date: Tue, 26 Mar 2019 09:17:02 +0100 Subject: Eliminated printStackTrace() calls Eliminated calls to printStackTrace() on Throwable as they go to stdout and are not handled by logger. Occurences has been replaced by calls to logger or modifications to nearby logger calls (Throwable passed as last parameter). Occurences in unit test classes left without modification. Change-Id: I6a771d60a3ea69ceecc29bb21358e565aa5ce101 Issue-ID: LOG-631 Signed-off-by: Witold Ficio Kopel --- .../scripts/CreateNetworkInstance.groovy | 2 +- .../infrastructure/scripts/DoCreateVfModule.groovy | 13 +++++-------- .../bpmn/infrastructure/scripts/DoCreateVnf.groovy | 2 +- .../infrastructure/scripts/DoDeleteVfModule.groovy | 3 +-- .../scripts/DoDeleteVfModuleFromVnf.groovy | 21 +++++++++------------ .../scripts/DoDeleteVnfAndModules.groovy | 5 ++--- .../infrastructure/scripts/DoUpdateVfModule.groovy | 5 ++--- .../scripts/DoUpdateVnfAndModules.groovy | 3 +-- .../scripts/UpdateNetworkInstance.groovy | 2 +- 9 files changed, 23 insertions(+), 33 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-common') diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateNetworkInstance.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateNetworkInstance.groovy index 19fe018e13..d588da38b0 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateNetworkInstance.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateNetworkInstance.groovy @@ -416,7 +416,7 @@ public class CreateNetworkInstance extends AbstractServiceTaskProcessor { } catch (Exception ex) { String errorException = " Bpmn error encountered in CreateNetworkInstance flow. FalloutHandlerRequest, buildErrorResponse()" - logger.debug("Exception error in CreateNetworkInstance flow, buildErrorResponse(): " + ex.getMessage()) + logger.debug("Exception error in CreateNetworkInstance flow, buildErrorResponse(): {}", ex.getMessage(), ex) falloutHandlerRequest = """