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 <dusha...@wso2.com> 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 : dusha...@wso2.com > Mobile : +94779367571 <+94%2077%20936%207571> > Web : https://wso2.com/ > > > -- Regards*,* *Viduranga Gunarathne* *Software Engineer* *WSO2 (Pvt) Ltd.* *Mobile : *+94712437484 *Email : *vidura...@wso2.com *Web : *http://wso2.com *Blog : *http://medium.com/@vlgunarathne <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev