You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/05/24 01:41:04 UTC
[jira] [Updated] (RANGER-1610) Modify the Logger scope and keep the
consistent info in XPolicyService.java
[ https://issues.apache.org/jira/browse/RANGER-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Qiang Zhang updated RANGER-1610:
--------------------------------
Attachment: 0001-RANGER-1610-Modify-the-Logger-scope-and-keep-the-con.patch
> Modify the Logger scope and keep the consistent info in XPolicyService.java
> ----------------------------------------------------------------------------
>
> Key: RANGER-1610
> URL: https://issues.apache.org/jira/browse/RANGER-1610
> Project: Ranger
> Issue Type: Improvement
> Components: admin
> Affects Versions: master
> Reporter: Qiang Zhang
> Priority: Minor
> Attachments: 0001-RANGER-1610-Modify-the-Logger-scope-and-keep-the-con.patch
>
>
> Modify the Logger scope from Logger logger = Logger.getLogger(XPolicyService.class);
> to private static final Logger logger = Logger.getLogger(XPolicyService.class);
> and keep the consistent info
> if (xxGroup == null) {
> logger.error("No UserGroup found with this name : "+ group);
> throw restErrorUtil.createRESTException(
> "No Group found with name : " + group, MessageEnums.DATA_NOT_FOUND);
> }
> to
> if (xxGroup == null) {
> logger.error("No Group found with name : "+ group);
> throw restErrorUtil.createRESTException(
> "No Group found with name : " + group, MessageEnums.DATA_NOT_FOUND);
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)