From 03ae2e5fe7ec8f65d7c71e6b4cb52f690d515950 Mon Sep 17 00:00:00 2001 From: chanikag Date: Thu, 11 Jul 2024 14:38:49 +0530 Subject: [PATCH] Change the log format name This is related to PR https://github.com/wso2/wso2-synapse/pull/2198 --- .../synapse/transport/customlogsetter/CustomLogSetter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }