diff --git a/README.md b/README.md index d12d1f07..50de52d6 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Product user version : 7.0 Note: _The 'Product user version' is a value that you set in the environment variables, and is intended for the consumers._ -## Testing That all External Dervices can be Accessed +## Testing That all External Devices can be Accessed One of the added values of this service is to create a single point of access for external dependencies. However, this needs to be checked, before using this service. In order to do this you need to the following POST call: ``` diff --git a/ReleaseNotes.md b/ReleaseNotes.md index ae4c0e60..760a44c6 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,8 @@ # Bridge Service - RELEASE NOTES +## 2.11.16-SNAPSHOT +* [#88 Logging action steps](https://github.com/adobe/bridgeService/issues/88). We now log the steps we take during execution for better debugging. + ## 2.11.15 * [#71 Adding step name when throwing exceptions](https://github.com/adobe/bridgeService/issues/71). When an exception happens, include the step in which it occurred. * [#72 Provide the stack trace of the root cause of the errors](https://github.com/adobe/bridgeService/issues/72). With issue #9 we discovered that the stack trace should be that of the original cause. diff --git a/diagrams/Processes.drawio b/diagrams/Processes.drawio index 0eff2a17..36d73367 100644 --- a/diagrams/Processes.drawio +++ b/diagrams/Processes.drawio @@ -1,4 +1,4 @@ - + @@ -91,7 +91,7 @@ - + @@ -150,47 +150,47 @@ - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/integroBridgeService/src/main/java/com/adobe/campaign/tests/bridge/service/LogManagement.java b/integroBridgeService/src/main/java/com/adobe/campaign/tests/bridge/service/LogManagement.java index 4ca28997..5a9e72d2 100644 --- a/integroBridgeService/src/main/java/com/adobe/campaign/tests/bridge/service/LogManagement.java +++ b/integroBridgeService/src/main/java/com/adobe/campaign/tests/bridge/service/LogManagement.java @@ -8,12 +8,16 @@ */ package com.adobe.campaign.tests.bridge.service; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.ThreadContext; import java.util.Optional; public class LogManagement { public static final String STD_CURRENT_STEP = "currentStep"; + private static final Logger log = LogManager.getLogger(); + /** * Logs the step in the context. it will later be used by the Error Object to generate step info in the error @@ -32,6 +36,7 @@ protected static void logStep(STD_STEPS in_state) { * @param in_step A constant static field */ protected static void logStep(String in_step) { + log.info("About to perform step : {}", in_step); ThreadContext.put(STD_CURRENT_STEP, in_step); } diff --git a/integroBridgeService/src/main/resources/log4j2.xml b/integroBridgeService/src/main/resources/log4j2.xml index fcca4557..9365b9ad 100644 --- a/integroBridgeService/src/main/resources/log4j2.xml +++ b/integroBridgeService/src/main/resources/log4j2.xml @@ -23,10 +23,10 @@ - + - - + + @@ -39,12 +39,11 @@ - - - - - - - - + + + + + + + \ No newline at end of file