Skip to content

Commit

Permalink
capture REMOTE_HOST from error response when authorization fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeevbk committed Jan 7, 2021
1 parent f1b6d2b commit 5d0b434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<artifactId>logging-extension</artifactId>
<name>logging-extension</name>

<version>1.5.0.1</version>
<version>1.5.0.3</version>
<packaging>bundle</packaging>
<dependencies>
<dependency>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/wso2telco/logging/PropertyLogHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
}
Expand Down

0 comments on commit 5d0b434

Please sign in to comment.