diff options
author | Jim Hahn <jrh3@att.com> | 2019-02-15 17:43:45 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-02-15 17:43:45 -0500 |
commit | 2917a67f12e32a7337e3a9f9b9fd3de4469a921c (patch) | |
tree | 0a5e0db2999d8aa4a30c41136bfa385738300f3f /gson/src | |
parent | 6986bd46fc69e4fb8e4bfb384620c51f73b625be (diff) |
Add log message when gson used
Added code to log a message when gson is used instead of jackson.
Change-Id: I8cbb8ad8461cc364c3419aaa174cef2680c5a672
Issue-ID: POLICY-1428
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'gson/src')
-rw-r--r-- | gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java b/gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java index d48649ea..a1c54afa 100644 --- a/gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java +++ b/gson/src/main/java/org/onap/policy/common/gson/JacksonHandler.java @@ -21,6 +21,8 @@ package org.onap.policy.common.gson; import com.google.gson.GsonBuilder; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Provider used to serialize and deserialize policy objects via gson using jackson @@ -28,6 +30,8 @@ import com.google.gson.GsonBuilder; */ public class JacksonHandler extends GsonMessageBodyHandler { + public static final Logger logger = LoggerFactory.getLogger(JacksonHandler.class); + /** * Constructs the object. */ @@ -45,6 +49,8 @@ public class JacksonHandler extends GsonMessageBodyHandler { .registerTypeAdapterFactory(new JacksonMethodAdapterFactory()) .setExclusionStrategies(new JacksonExclusionStrategy()) .create()); + + logger.info("Using GSON for REST calls"); } } |