Skip to content

Commit

Permalink
Merge pull request #6906 from Viii3/FISH-9197-Logging
Browse files Browse the repository at this point in the history
FISH-9197 Masking
  • Loading branch information
Viii3 authored Aug 29, 2024
2 parents d935913 + dbaf3e0 commit 4a8ca2e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2017-2021] [Payara Foundation and/or its affiliates]
// Portions Copyright [2017-2024] [Payara Foundation and/or its affiliates]

package org.glassfish.admingui.common.util;

Expand Down Expand Up @@ -190,12 +190,12 @@ public static Map<String, Object> restRequest(String endpoint, Map<String, Objec
Logger logger = GuiUtil.getLogger();
if (logger.isLoggable(Level.FINEST)) {
Map<String, Object> maskedAttr = maskOffPassword(attrs);
logger.log(Level.FINEST,
GuiUtil.getCommonMessage("LOG_REST_REQUEST_INFO",
new Object[]{
endpoint,
(useData && "post".equals(method)) ? data : attrs, method
}));
logger.log(Level.FINEST, GuiUtil.getCommonMessage("LOG_REST_REQUEST_INFO",
new Object[]{
endpoint,
(useData && "post".equals(method)) ? data : maskedAttr, method
})
);
}

// Execute the request...
Expand Down

0 comments on commit 4a8ca2e

Please sign in to comment.