diff --git a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/customlogsetter/CustomLogSetter.java b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/customlogsetter/CustomLogSetter.java index af350b4930..287523243b 100644 --- a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/customlogsetter/CustomLogSetter.java +++ b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/customlogsetter/CustomLogSetter.java @@ -22,7 +22,7 @@ public class CustomLogSetter { private static CustomLogSetter instance = null; - private static final String APPENDER_CONTENT = "CAppName"; + private static final String APPENDER_CONTENT = "Artifact-Container"; private CustomLogSetter() { } @@ -41,6 +41,6 @@ public void setLogAppender (String appenderContent) { } public void clearThreadLocalContent () { - ThreadContext.clearAll(); + ThreadContext.remove(APPENDER_CONTENT); } }