[ 
https://issues.apache.org/jira/browse/RANGER-1590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

peng.jianhua updated RANGER-1590:
---------------------------------
    Description: 
modify code for the error logs in 
ranger\knox-agent\src\main\java\org\apache\ranger\services\knox\client\KnoxClient.java
chang                                           LOG.debug("Knox service look up 
response JSON string: " + jsonString);
to                                              LOG.debug("Knox service lookup 
response JSON string: " + jsonString);

reson :keep the log consistent:
response = webResource.accept(EXPECTED_MIME_TYPE)
                                                        
.get(ClientResponse.class);
                                        LOG.debug("Knox service lookup 
response: " + response);
                                        if (response != null) {

                                                if (response.getStatus() == 
200) {
                                                        String jsonString = 
response.getEntity(String.class);
                                                        LOG.debug("Knox service 
lookup response JSON string: " + jsonString);

> modify code for the error logs in 
> ranger\knox-agent\src\main\java\org\apache\ranger\services\knox\client\KnoxClient.java
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1590
>                 URL: https://issues.apache.org/jira/browse/RANGER-1590
>             Project: Ranger
>          Issue Type: Improvement
>          Components: plugins
>    Affects Versions: master
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>
> modify code for the error logs in 
> ranger\knox-agent\src\main\java\org\apache\ranger\services\knox\client\KnoxClient.java
> chang                                                 LOG.debug("Knox service 
> look up response JSON string: " + jsonString);
> to                                            LOG.debug("Knox service lookup 
> response JSON string: " + jsonString);
> reson :keep the log consistent:
> response = webResource.accept(EXPECTED_MIME_TYPE)
>                                                       
> .get(ClientResponse.class);
>                                       LOG.debug("Knox service lookup 
> response: " + response);
>                                       if (response != null) {
>                                               if (response.getStatus() == 
> 200) {
>                                                       String jsonString = 
> response.getEntity(String.class);
>                                                       LOG.debug("Knox service 
> lookup response JSON string: " + jsonString);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to