Skip to content

Commit

Permalink
Turn down log level of StaplerFilteredActionListener
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Aug 22, 2024
1 parent 80cf2aa commit 9ad285a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class StaplerFilteredActionListener implements FilteredDoActionTriggerLis

@Override
public boolean onDoActionTrigger(Function f, StaplerRequest req, StaplerResponse rsp, Object node) {
LOGGER.log(Level.WARNING, LOG_MESSAGE, new Object[]{
LOGGER.log(Level.FINER, LOG_MESSAGE, new Object[]{
req.getPathInfo(),
f.getSignature(),
});
Expand All @@ -59,7 +59,7 @@ public boolean onDoActionTrigger(Function f, StaplerRequest req, StaplerResponse

@Override
public boolean onGetterTrigger(Function f, StaplerRequest req, StaplerResponse rsp, Object node, String expression) {
LOGGER.log(Level.WARNING, LOG_MESSAGE, new Object[]{
LOGGER.log(Level.FINER, LOG_MESSAGE, new Object[]{
req.getPathInfo(),
f.getSignature(),
});
Expand All @@ -68,7 +68,7 @@ public boolean onGetterTrigger(Function f, StaplerRequest req, StaplerResponse r

@Override
public boolean onFieldTrigger(FieldRef f, StaplerRequest req, StaplerResponse staplerResponse, Object node, String expression) {
LOGGER.log(Level.WARNING, LOG_MESSAGE, new Object[]{
LOGGER.log(Level.FINER, LOG_MESSAGE, new Object[]{
req.getPathInfo(),
f.getSignature(),
});
Expand All @@ -77,7 +77,7 @@ public boolean onFieldTrigger(FieldRef f, StaplerRequest req, StaplerResponse st

@Override
public boolean onDispatchTrigger(StaplerRequest req, StaplerResponse rsp, Object node, String viewName) {
LOGGER.warning(() -> "New Stapler dispatch rules result in the URL \"" + req.getPathInfo() + "\" no longer being allowed. " +
LOGGER.finer(() -> "New Stapler dispatch rules result in the URL \"" + req.getPathInfo() + "\" no longer being allowed. " +
"If you consider it safe to use, add the following to the whitelist: \"" + node.getClass().getName() + " " + viewName + "\". " +
"Learn more: https://www.jenkins.io/redirect/stapler-facet-restrictions");
return false;
Expand Down

0 comments on commit 9ad285a

Please sign in to comment.