Skip to content

Commit 135f702

Browse files
authored
Merge pull request #30 from wasanthawso2/release-v1.1.7-orange
ANLT-479 Logmanager changes for country-code
2 parents 9229c9b + 0aaa4c2 commit 135f702

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<artifactId>logging-extension</artifactId>
2525
<name>logging-extension</name>
2626

27-
<version>1.1.6-orange</version>
27+
<version>1.1.7-orange</version>
2828
<packaging>bundle</packaging>
2929
<dependencies>
3030
<dependency>

src/main/java/com/wso2telco/logging/PropertyLogHandler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class PropertyLogHandler extends AbstractMediator {
5454
private static final String CONSUMER_KEY = "api.ut.consumerKey";
5555
private static final String BIZAO_TOKEN = "bizao-token";
5656
private static final String BIZAO_ALIAS = "bizao-alias";
57+
private static final String COUNTRY_CODE = "Country-code";
5758

5859
private static final Log logHandler = LogFactory.getLog("REQUEST_RESPONSE_LOGGER");
5960

@@ -91,7 +92,8 @@ private void logRequestProperties(MessageContext messageContext, org.apache.axis
9192
",METHOD:" + messageContext.getProperty(METHOD) +
9293
",BODY:" + requestPayload.replaceAll("\n", "") +
9394
",BIZAO_TOKEN:"+messageContext.getProperty(BIZAO_TOKEN) +
94-
",BIZAO_ALIAS:"+messageContext.getProperty(BIZAO_ALIAS)
95+
",BIZAO_ALIAS:"+messageContext.getProperty(BIZAO_ALIAS) +
96+
",COUNTRY_CODE:"+messageContext.getProperty(COUNTRY_CODE)
9597
);
9698
}
9799
}
@@ -124,7 +126,8 @@ private void logErrorProperties(MessageContext messageContext, org.apache.axis2.
124126
",HTTP_STATUS:" + axis2MessageContext.getProperty(HTTP_SC) + "" +
125127
",ERROR_MESSAGE:" + messageContext.getProperty(ERROR_MESSAGE) +
126128
",BIZAO_TOKEN:"+messageContext.getProperty(BIZAO_TOKEN) +
127-
",BIZAO_ALIAS:"+messageContext.getProperty(BIZAO_ALIAS)
129+
",BIZAO_ALIAS:"+messageContext.getProperty(BIZAO_ALIAS) +
130+
",COUNTRY_CODE:"+messageContext.getProperty(COUNTRY_CODE)
128131
);
129132
}
130133
}

0 commit comments

Comments
 (0)