Hi Viduranga, Thank you for the suggestion. Yes It works fine with WS client. But still axis2MessageContext returns null for thrift client so I am unable to use the existing log from [2]. So now for my purpose, I have added a separate debug log to log the response time.
*Dushani Wellappili* Software Engineer - WSO2 Email : [email protected] Mobile : +94779367571 Web : https://wso2.com/ On Wed, Feb 21, 2018 at 10:30 AM, Viduranga Gunarathne <[email protected]> wrote: > Hi Dushani, > > Try changing the > > <KeyValidatorClientType>ThriftClient</KeyValidatorClientType> > to > <KeyValidatorClientType>WSClient</KeyValidatorClientType> > > in the *api-manager.xml* of the *KeyManager* node. > > Thanks, > Viduranga. > > On Tue, Feb 20, 2018 at 3:10 PM, Dushani Wellappili <[email protected]> > wrote: > >> Hi all, >> >> I am using APIM 2.1.0 in a distributed deployment. I have enabled debug >> logs for APIKeyValidationService class inside >> org.wso2.carbon.apimgt.keymgt.service. >> I need to log the response time taken for OAuth token response from >> keyManager to gateway from line 259 [1]. >> >> But logMessages() method doesnt get invoked since the if condition [2] >> before the method call fails as axis2MessageContext variable is null. >> >> Any thoughts on this ? >> >> >> [1] https://github.com/wso2/carbon-apimgt/blob/6.x/components/ >> apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/ >> carbon/apimgt/keymgt/service/APIKeyValidationService.java#L259 >> >> [2] https://github.com/wso2/carbon-apimgt/blob/6.x/components/ >> apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/ >> carbon/apimgt/keymgt/service/APIKeyValidationService.java#L205 >> >> >> >> *Dushani Wellappili* >> Software Engineer - WSO2 >> >> Email : [email protected] >> Mobile : +94779367571 <+94%2077%20936%207571> >> Web : https://wso2.com/ >> >> >> > > > -- > Regards*,* > *Viduranga Gunarathne* > *Software Engineer* > *WSO2 (Pvt) Ltd.* > > *Mobile : *+94712437484 <+94%2071%20243%207484> > *Email : *[email protected] > *Web : *http://wso2.com > *Blog : *http://medium.com/@vlgunarathne > <http://wso2.com/signature> >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
