From 5d0b43464e83ee8d1df392c7a9d0e338fcaf2cd1 Mon Sep 17 00:00:00 2001 From: rajeevbk Date: Thu, 7 Jan 2021 15:40:18 +0530 Subject: [PATCH] capture REMOTE_HOST from error response when authorization fails --- pom.xml | 2 +- src/main/java/com/wso2telco/logging/PropertyLogHandler.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8d81753..2c567aa 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ logging-extension logging-extension - 1.5.0.1 + 1.5.0.3 bundle diff --git a/src/main/java/com/wso2telco/logging/PropertyLogHandler.java b/src/main/java/com/wso2telco/logging/PropertyLogHandler.java index b144189..e73f90f 100644 --- a/src/main/java/com/wso2telco/logging/PropertyLogHandler.java +++ b/src/main/java/com/wso2telco/logging/PropertyLogHandler.java @@ -128,7 +128,8 @@ private void logErrorProperties(MessageContext messageContext, org.apache.axis2. ",ERROR_CODE:" + messageContext.getProperty(ERROR_CODE) + ",HTTP_STATUS:" + axis2MessageContext.getProperty(HTTP_SC) + "" + ",ERROR_MESSAGE:" + messageContext.getProperty(ERROR_MESSAGE) + - ",AUTHORIZATION:" + authorization + ",AUTHORIZATION:" + authorization + + ",REMOTE_HOST:" + axis2MessageContext.getProperty(REMOTE_HOST) ); } }